Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValueTable.cs
- HttpProfileBase.cs
- BitmapEffectDrawing.cs
- TransportChannelFactory.cs
- HttpProfileGroupBase.cs
- FormatterConverter.cs
- SaveFileDialog.cs
- UInt64.cs
- MethodToken.cs
- ToolStripSplitButton.cs
- TargetConverter.cs
- GACIdentityPermission.cs
- PassportIdentity.cs
- AuthenticationModuleElement.cs
- ExceptQueryOperator.cs
- DbReferenceCollection.cs
- TextSchema.cs
- MouseWheelEventArgs.cs
- BaseParser.cs
- RepeaterItem.cs
- BindingCollection.cs
- IntSecurity.cs
- Parameter.cs
- SafeViewOfFileHandle.cs
- ProfileGroupSettings.cs
- Material.cs
- SecurityKeyIdentifier.cs
- _CommandStream.cs
- FormViewInsertedEventArgs.cs
- OleDbConnection.cs
- NativeRightsManagementAPIsStructures.cs
- AutomationPropertyInfo.cs
- CommandConverter.cs
- CollectionChangeEventArgs.cs
- TableAdapterManagerMethodGenerator.cs
- HttpHandlerAction.cs
- XmlSignificantWhitespace.cs
- ListViewInsertEventArgs.cs
- ButtonChrome.cs
- OdbcTransaction.cs
- GlyphRunDrawing.cs
- XmlCodeExporter.cs
- TrackPointCollection.cs
- SiteMapSection.cs
- StrokeSerializer.cs
- UInt32.cs
- RequestChannelBinder.cs
- ImageClickEventArgs.cs
- CommonServiceBehaviorElement.cs
- NaturalLanguageHyphenator.cs
- GenericAuthenticationEventArgs.cs
- DataGridViewImageColumn.cs
- TcpClientSocketManager.cs
- XPathAncestorIterator.cs
- EmptyEnumerable.cs
- LiteralControl.cs
- _CommandStream.cs
- TableLayoutSettingsTypeConverter.cs
- ToolboxItemAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- FileSystemInfo.cs
- ImmutableObjectAttribute.cs
- InstallerTypeAttribute.cs
- ConnectionManagementElementCollection.cs
- CqlGenerator.cs
- FixedTextBuilder.cs
- Tablet.cs
- Panel.cs
- FusionWrap.cs
- DispatcherHooks.cs
- RowUpdatingEventArgs.cs
- TransportationConfigurationTypeInstallComponent.cs
- RTLAwareMessageBox.cs
- FixedSOMImage.cs
- RuntimeConfig.cs
- HostedTcpTransportManager.cs
- CompiledELinqQueryState.cs
- WpfSharedBamlSchemaContext.cs
- EnumValidator.cs
- SpecialNameAttribute.cs
- SingleResultAttribute.cs
- KeyMatchBuilder.cs
- SolidBrush.cs
- ConfigurationManagerHelper.cs
- ToolStripItem.cs
- InstanceHandleReference.cs
- ModelPropertyImpl.cs
- HitTestResult.cs
- IdentitySection.cs
- recordstatefactory.cs
- ViewStateModeByIdAttribute.cs
- SingleAnimation.cs
- TextAdaptor.cs
- EncodingNLS.cs
- ConfigurationPropertyCollection.cs
- PropertyChangedEventArgs.cs
- XamlClipboardData.cs
- BufferModesCollection.cs
- serverconfig.cs
- CookieHandler.cs