Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventRecordWrittenEventArgs.cs / 1305376 / EventRecordWrittenEventArgs.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventRecordWrittenEventArgs ** ** Purpose: ** The EventArgs class for an EventLogWatcher notification. ** ============================================================*/ using System; using System.IO; using System.Collections.Generic; using System.Threading; using System.Security.Permissions; using Microsoft.Win32; namespace System.Diagnostics.Eventing.Reader { ////// the custom event handler args. /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class EventRecordWrittenEventArgs : EventArgs { private EventRecord record; private Exception exception; internal EventRecordWrittenEventArgs(EventLogRecord record) { this.record = record; } internal EventRecordWrittenEventArgs(EventLogException exception) { this.exception = exception; } ////// The EventRecord being notified. /// NOTE: If non null, then caller is required to call Dispose(). /// public EventRecord EventRecord { get { return this.record; } } ////// If any error occured during subscription, this will be non-null. /// After a notification containing an exception, no more notifications will /// be made for this subscription. /// public Exception EventException { get{ return this.exception; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventRecordWrittenEventArgs ** ** Purpose: ** The EventArgs class for an EventLogWatcher notification. ** ============================================================*/ using System; using System.IO; using System.Collections.Generic; using System.Threading; using System.Security.Permissions; using Microsoft.Win32; namespace System.Diagnostics.Eventing.Reader { ////// the custom event handler args. /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class EventRecordWrittenEventArgs : EventArgs { private EventRecord record; private Exception exception; internal EventRecordWrittenEventArgs(EventLogRecord record) { this.record = record; } internal EventRecordWrittenEventArgs(EventLogException exception) { this.exception = exception; } ////// The EventRecord being notified. /// NOTE: If non null, then caller is required to call Dispose(). /// public EventRecord EventRecord { get { return this.record; } } ////// If any error occured during subscription, this will be non-null. /// After a notification containing an exception, no more notifications will /// be made for this subscription. /// public Exception EventException { get{ return this.exception; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlAliaser.cs
- ZeroOpNode.cs
- RectKeyFrameCollection.cs
- RepeatInfo.cs
- Tuple.cs
- DiscreteKeyFrames.cs
- DbDataRecord.cs
- ListSourceHelper.cs
- ApplicationServicesHostFactory.cs
- AccessibleObject.cs
- FontCacheUtil.cs
- LocatorBase.cs
- FixedHyperLink.cs
- TranslateTransform3D.cs
- NumericUpDownAcceleration.cs
- DataGridViewColumn.cs
- DeviceContext.cs
- RuntimeEnvironment.cs
- SQLSingleStorage.cs
- CodePageEncoding.cs
- DataContractSerializerOperationGenerator.cs
- ListCollectionView.cs
- BodyGlyph.cs
- EqualityArray.cs
- HtmlEmptyTagControlBuilder.cs
- InlineObject.cs
- ButtonBaseDesigner.cs
- TdsParserSafeHandles.cs
- DeviceContexts.cs
- DesignOnlyAttribute.cs
- GridItemPatternIdentifiers.cs
- GlobalProxySelection.cs
- Propagator.JoinPropagator.cs
- BulletChrome.cs
- PointHitTestParameters.cs
- SmtpLoginAuthenticationModule.cs
- MouseActionValueSerializer.cs
- InternalBufferOverflowException.cs
- DataGridViewRowCancelEventArgs.cs
- AsynchronousChannel.cs
- GradientBrush.cs
- TextEditorMouse.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ScriptManagerProxy.cs
- HostedTcpTransportManager.cs
- PathFigureCollection.cs
- DataBindEngine.cs
- ShortcutKeysEditor.cs
- Triplet.cs
- PathGeometry.cs
- ReflectEventDescriptor.cs
- Stylesheet.cs
- HandleRef.cs
- ResourceDescriptionAttribute.cs
- SoundPlayerAction.cs
- AuthenticationConfig.cs
- GridItemProviderWrapper.cs
- Focus.cs
- __FastResourceComparer.cs
- SqlFunctionAttribute.cs
- SqlDataReader.cs
- BaseTemplateParser.cs
- DescendentsWalker.cs
- BinaryUtilClasses.cs
- SqlEnums.cs
- FilterEventArgs.cs
- SocketAddress.cs
- Compiler.cs
- TableLayoutRowStyleCollection.cs
- SessionPageStateSection.cs
- DesignTimeTemplateParser.cs
- SingleAnimationBase.cs
- Image.cs
- TemplatedWizardStep.cs
- WizardSideBarListControlItem.cs
- Span.cs
- DocumentAutomationPeer.cs
- dataobject.cs
- DXD.cs
- Wizard.cs
- CompositeScriptReference.cs
- WebPart.cs
- WebPartEditorOkVerb.cs
- SystemNetworkInterface.cs
- Pen.cs
- DesignBinding.cs
- TraceXPathNavigator.cs
- Shape.cs
- CollectionDataContractAttribute.cs
- BamlRecordHelper.cs
- CodeComment.cs
- MessageQueue.cs
- SqlTriggerAttribute.cs
- String.cs
- TextClipboardData.cs
- WinEventQueueItem.cs
- XmlSerializationReader.cs
- SpellCheck.cs
- XmlElementCollection.cs
- FormParameter.cs