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
- cookiecontainer.cs
- Simplifier.cs
- smtpconnection.cs
- XmlWrappingReader.cs
- CodeTypeConstructor.cs
- EmptyReadOnlyDictionaryInternal.cs
- Int32.cs
- Rule.cs
- StreamHelper.cs
- NavigationProgressEventArgs.cs
- ChangeInterceptorAttribute.cs
- DrawingBrush.cs
- MailWebEventProvider.cs
- EncryptedType.cs
- GradientStop.cs
- ResourceKey.cs
- BamlTreeNode.cs
- CryptoStream.cs
- ContentDisposition.cs
- GCHandleCookieTable.cs
- XmlStreamStore.cs
- XamlDesignerSerializationManager.cs
- Model3DGroup.cs
- NavigatorInput.cs
- WhereQueryOperator.cs
- StatusBarPanel.cs
- MetabaseServerConfig.cs
- _WinHttpWebProxyDataBuilder.cs
- Error.cs
- CounterCreationData.cs
- shaperfactory.cs
- ResourceReader.cs
- ReflectPropertyDescriptor.cs
- __FastResourceComparer.cs
- OracleParameter.cs
- KeyTime.cs
- FormViewRow.cs
- GetWinFXPath.cs
- RequiredFieldValidator.cs
- SEHException.cs
- PropertyDescriptorComparer.cs
- InternalRelationshipCollection.cs
- PaginationProgressEventArgs.cs
- UnsafeNativeMethods.cs
- ZoneLinkButton.cs
- AuthenticationException.cs
- httpserverutility.cs
- HtmlShimManager.cs
- GridItemPattern.cs
- SchemaManager.cs
- BoundingRectTracker.cs
- SystemResources.cs
- TextBoxBase.cs
- ResourceWriter.cs
- datacache.cs
- FakeModelPropertyImpl.cs
- COAUTHIDENTITY.cs
- CalendarDay.cs
- ZipIORawDataFileBlock.cs
- UnsafeNativeMethods.cs
- TableItemStyle.cs
- KnownBoxes.cs
- FamilyMap.cs
- XmlDomTextWriter.cs
- TraceSection.cs
- EventDescriptor.cs
- QueryPageSettingsEventArgs.cs
- AndCondition.cs
- XsdBuilder.cs
- SoapObjectInfo.cs
- BuildResult.cs
- HtmlListAdapter.cs
- SizeLimitedCache.cs
- ComboBox.cs
- MatchAttribute.cs
- EdmScalarPropertyAttribute.cs
- HtmlAnchor.cs
- WindowsRegion.cs
- FilterRepeater.cs
- HttpPostServerProtocol.cs
- WebControlsSection.cs
- Grid.cs
- HierarchicalDataBoundControl.cs
- RegexParser.cs
- ByteStreamGeometryContext.cs
- BitmapSizeOptions.cs
- KeyFrames.cs
- TracingConnectionInitiator.cs
- RTLAwareMessageBox.cs
- TextTreeTextElementNode.cs
- ModuleBuilder.cs
- XmlUrlEditor.cs
- TextRangeEditTables.cs
- SystemColorTracker.cs
- Decoder.cs
- WebPartUserCapability.cs
- FileController.cs
- NTAccount.cs
- LinkButton.cs
- MasterPageParser.cs