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
- ContentPosition.cs
- StoreItemCollection.cs
- dataSvcMapFileLoader.cs
- XNodeNavigator.cs
- CodeExpressionCollection.cs
- ScrollableControl.cs
- EventPropertyMap.cs
- WebServiceResponse.cs
- SmtpNegotiateAuthenticationModule.cs
- Light.cs
- DataGridViewImageColumn.cs
- ZipIOBlockManager.cs
- SrgsDocumentParser.cs
- WindowsAuthenticationModule.cs
- XsltConvert.cs
- TextWriterTraceListener.cs
- XmlDocumentType.cs
- ResourceDisplayNameAttribute.cs
- DesignerDataTable.cs
- TcpConnectionPool.cs
- ExpressionBuilder.cs
- HttpContextServiceHost.cs
- QilPatternFactory.cs
- ModelVisual3D.cs
- ScriptResourceDefinition.cs
- CdpEqualityComparer.cs
- RelationshipSet.cs
- NullableConverter.cs
- CodeSnippetStatement.cs
- SqlRetyper.cs
- SystemIPv4InterfaceProperties.cs
- ScriptControlDescriptor.cs
- _emptywebproxy.cs
- SecurityPermission.cs
- SizeValueSerializer.cs
- ResourceDefaultValueAttribute.cs
- CapabilitiesUse.cs
- EdmComplexPropertyAttribute.cs
- RawStylusInputCustomDataList.cs
- MenuItemCollectionEditor.cs
- CodeMemberMethod.cs
- AdditionalEntityFunctions.cs
- HtmlControl.cs
- RenderDataDrawingContext.cs
- Funcletizer.cs
- SmiEventSink_DeferedProcessing.cs
- RsaSecurityKey.cs
- EntityDataSourceColumn.cs
- DoubleLink.cs
- WmlMobileTextWriter.cs
- IntPtr.cs
- CalendarBlackoutDatesCollection.cs
- SimpleMailWebEventProvider.cs
- SafeLibraryHandle.cs
- TypeLoadException.cs
- DbConnectionOptions.cs
- _RequestLifetimeSetter.cs
- WorkflowFileItem.cs
- MouseWheelEventArgs.cs
- DispatcherProcessingDisabled.cs
- ServiceReference.cs
- ResourceDescriptionAttribute.cs
- ProjectionPlan.cs
- Group.cs
- BrowsableAttribute.cs
- ComponentGlyph.cs
- KnownAssembliesSet.cs
- GifBitmapEncoder.cs
- ContextProperty.cs
- EditingMode.cs
- DependencyObjectType.cs
- EdmFunctionAttribute.cs
- StylusPointCollection.cs
- ReadOnlyDictionary.cs
- GPPOINT.cs
- WindowsNonControl.cs
- UidManager.cs
- XmlEntityReference.cs
- Typography.cs
- DataGridColumn.cs
- SpeechRecognizer.cs
- ObjectStateFormatter.cs
- ObjectListFieldCollection.cs
- DoubleLink.cs
- PenThreadPool.cs
- RoutedUICommand.cs
- StylusDevice.cs
- MustUnderstandSoapException.cs
- MapPathBasedVirtualPathProvider.cs
- HMACRIPEMD160.cs
- AnimationClockResource.cs
- CodeSnippetCompileUnit.cs
- SqlDependencyUtils.cs
- ConfigViewGenerator.cs
- PartManifestEntry.cs
- CommonProperties.cs
- ImageField.cs
- TypeDelegator.cs
- WsatServiceCertificate.cs
- Trace.cs