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
- EntityKey.cs
- DelayedRegex.cs
- TcpSocketManager.cs
- LicenseContext.cs
- ConfigXmlSignificantWhitespace.cs
- NoResizeHandleGlyph.cs
- ExternalException.cs
- Range.cs
- WebDisplayNameAttribute.cs
- GenericQueueSurrogate.cs
- SettingsPropertyNotFoundException.cs
- ScriptingSectionGroup.cs
- KeyPressEvent.cs
- BamlRecordReader.cs
- BaseResourcesBuildProvider.cs
- Int64Converter.cs
- DBSchemaTable.cs
- ListViewItemEventArgs.cs
- LineGeometry.cs
- WebControlsSection.cs
- MenuItemBindingCollection.cs
- ColorMap.cs
- UrlAuthFailedErrorFormatter.cs
- DesignTimeValidationFeature.cs
- TablePattern.cs
- DetailsViewDeleteEventArgs.cs
- recordstatescratchpad.cs
- ClientRolePrincipal.cs
- EntityDataSourceEntitySetNameItem.cs
- OdbcUtils.cs
- GeneratedContractType.cs
- _FtpDataStream.cs
- ProxyWebPartConnectionCollection.cs
- SymLanguageVendor.cs
- securitycriticaldata.cs
- OdbcConnectionHandle.cs
- MissingMethodException.cs
- DateTimeFormat.cs
- BindStream.cs
- PaperSize.cs
- Int32AnimationUsingKeyFrames.cs
- UIElementPropertyUndoUnit.cs
- ZoneLinkButton.cs
- DataKeyCollection.cs
- UIServiceHelper.cs
- connectionpool.cs
- ControlPropertyNameConverter.cs
- MessageSmuggler.cs
- VirtualPath.cs
- OutputCacheModule.cs
- ToolStripLocationCancelEventArgs.cs
- SecurityContextSecurityTokenResolver.cs
- XmlSchemaElement.cs
- RijndaelManaged.cs
- BamlRecordHelper.cs
- EditableLabelControl.cs
- PeerNameRegistration.cs
- SMSvcHost.cs
- Path.cs
- PropertyPushdownHelper.cs
- UnauthorizedAccessException.cs
- RoleGroupCollectionEditor.cs
- HatchBrush.cs
- DataGridPagerStyle.cs
- CollectionViewGroupRoot.cs
- HighlightOverlayGlyph.cs
- TextParaClient.cs
- CodeDirectionExpression.cs
- GridViewCancelEditEventArgs.cs
- DataServiceConfiguration.cs
- DnsPermission.cs
- CounterCreationDataCollection.cs
- latinshape.cs
- _FtpDataStream.cs
- HttpContextServiceHost.cs
- ParallelActivityDesigner.cs
- Root.cs
- SeverityFilter.cs
- CodeDirectionExpression.cs
- DocumentViewerHelper.cs
- IntegerCollectionEditor.cs
- SelectionProviderWrapper.cs
- AuthenticationService.cs
- HeaderFilter.cs
- ValueUtilsSmi.cs
- DrawingVisualDrawingContext.cs
- XslAstAnalyzer.cs
- LocalizationComments.cs
- ManagementInstaller.cs
- StylusPointProperties.cs
- HttpListenerException.cs
- TimelineGroup.cs
- PathNode.cs
- OleDbParameterCollection.cs
- CodeNamespaceImport.cs
- _WinHttpWebProxyDataBuilder.cs
- Options.cs
- CorruptStoreException.cs
- contentDescriptor.cs
- SourceFilter.cs