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
- XmlDataSourceView.cs
- CurrentTimeZone.cs
- FixedHighlight.cs
- StorageRoot.cs
- ExpressionCopier.cs
- TextRange.cs
- AutomationPatternInfo.cs
- CompilerResults.cs
- UrlPropertyAttribute.cs
- ArrangedElement.cs
- dataobject.cs
- Trace.cs
- EndpointBehaviorElement.cs
- DependencyProperty.cs
- RC2.cs
- ConfigurationFileMap.cs
- Trace.cs
- Cursors.cs
- DesignerActionKeyboardBehavior.cs
- GcSettings.cs
- SharedConnectionWorkflowTransactionService.cs
- CatalogZoneBase.cs
- GlyphingCache.cs
- ScriptHandlerFactory.cs
- XmlSchemas.cs
- Image.cs
- PropertyReferenceExtension.cs
- DbDataAdapter.cs
- DefaultProfileManager.cs
- SerializationBinder.cs
- ChannelSinkStacks.cs
- DropDownButton.cs
- PropagatorResult.cs
- WindowsSpinner.cs
- RequestSecurityTokenResponse.cs
- ResourceExpressionBuilder.cs
- IndexerNameAttribute.cs
- SystemUnicastIPAddressInformation.cs
- CacheDependency.cs
- ColorMatrix.cs
- ControlCollection.cs
- XPathMultyIterator.cs
- SchemaMerger.cs
- SqlDataAdapter.cs
- SqlDataReader.cs
- DiscardableAttribute.cs
- BamlRecords.cs
- PreDigestedSignedInfo.cs
- FormViewActionList.cs
- HttpRuntimeSection.cs
- MetadataItem_Static.cs
- Merger.cs
- FontCacheUtil.cs
- PreProcessor.cs
- WebZone.cs
- UrlPath.cs
- BindingOperations.cs
- BitmapEffect.cs
- FlowDocumentFormatter.cs
- PropertyBuilder.cs
- ControlIdConverter.cs
- TraceContext.cs
- IdentityValidationException.cs
- DBDataPermission.cs
- XmlLanguageConverter.cs
- FragmentNavigationEventArgs.cs
- UserPersonalizationStateInfo.cs
- EdmScalarPropertyAttribute.cs
- XmlIlVisitor.cs
- DispatchOperationRuntime.cs
- VarInfo.cs
- DocumentOrderQuery.cs
- NegotiationTokenAuthenticator.cs
- DrawingServices.cs
- FontSizeConverter.cs
- BinaryObjectInfo.cs
- Point3D.cs
- TableCellAutomationPeer.cs
- TableRowGroupCollection.cs
- Binding.cs
- XmlDataProvider.cs
- NativeActivityFaultContext.cs
- CheckBoxPopupAdapter.cs
- ImageConverter.cs
- SpotLight.cs
- Version.cs
- BaseParser.cs
- AtomicFile.cs
- ObjectFullSpanRewriter.cs
- TagNameToTypeMapper.cs
- RepeaterItem.cs
- BitmapEffectrendercontext.cs
- AssemblyAssociatedContentFileAttribute.cs
- ScrollItemPattern.cs
- XmlUtilWriter.cs
- ComponentEditorForm.cs
- CodeRemoveEventStatement.cs
- DataSourceControlBuilder.cs
- DateTimeParse.cs
- BufferBuilder.cs