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
- WindowsGrip.cs
- FindCriteriaApril2005.cs
- infer.cs
- XamlValidatingReader.cs
- StrokeCollection.cs
- EditBehavior.cs
- COM2ExtendedBrowsingHandler.cs
- DataError.cs
- NativeWindow.cs
- Package.cs
- Journaling.cs
- TextEffectCollection.cs
- AdornerLayer.cs
- FixedStringLookup.cs
- ExtractorMetadata.cs
- StaticFileHandler.cs
- StringValueConverter.cs
- WebPartConnectionsEventArgs.cs
- ChtmlTextWriter.cs
- PathFigureCollectionConverter.cs
- ColorMap.cs
- HtmlInputReset.cs
- Pen.cs
- UIElementCollection.cs
- ApplicationManager.cs
- AsymmetricKeyExchangeFormatter.cs
- Scalars.cs
- GridView.cs
- GetCryptoTransformRequest.cs
- TreeNodeEventArgs.cs
- cookiecollection.cs
- SspiNegotiationTokenAuthenticator.cs
- SmtpSection.cs
- Camera.cs
- InputEventArgs.cs
- SolidBrush.cs
- PenThreadWorker.cs
- NegotiationTokenAuthenticator.cs
- M3DUtil.cs
- TraceXPathNavigator.cs
- LineMetrics.cs
- ImageButton.cs
- CodeConstructor.cs
- CqlLexer.cs
- XPathBinder.cs
- WebZone.cs
- HostExecutionContextManager.cs
- WebPartVerbCollection.cs
- DetailsViewPageEventArgs.cs
- RemotingAttributes.cs
- QilValidationVisitor.cs
- CheckBoxAutomationPeer.cs
- CachedFontFace.cs
- GenerateTemporaryTargetAssembly.cs
- CodeArrayIndexerExpression.cs
- RuntimeEnvironment.cs
- HttpCapabilitiesSectionHandler.cs
- AppLevelCompilationSectionCache.cs
- _SSPIWrapper.cs
- NativeActivityAbortContext.cs
- DES.cs
- ProtocolsConfigurationEntry.cs
- InstanceCreationEditor.cs
- WinCategoryAttribute.cs
- WindowsFormsHost.cs
- DataServiceRequest.cs
- TimeoutException.cs
- InternalSafeNativeMethods.cs
- SpeakInfo.cs
- ListViewUpdatedEventArgs.cs
- PreviewPrintController.cs
- SafeNativeMethods.cs
- Accessible.cs
- PolicyValidationException.cs
- SQLMembershipProvider.cs
- SettingsPropertyValueCollection.cs
- SendMailErrorEventArgs.cs
- ScriptManagerProxy.cs
- WorkflowInstanceExtensionCollection.cs
- WebEventCodes.cs
- CatalogZoneBase.cs
- TdsParserSafeHandles.cs
- AdPostCacheSubstitution.cs
- ValidationSummary.cs
- WebServiceMethodData.cs
- OdbcConnectionOpen.cs
- XmlValidatingReader.cs
- PrinterUnitConvert.cs
- LoginUtil.cs
- DetailsViewRow.cs
- TransportSecurityProtocolFactory.cs
- BridgeDataReader.cs
- ToolStripDropDownMenu.cs
- TdsParameterSetter.cs
- Keywords.cs
- EntityDataSourceEntitySetNameItem.cs
- Memoizer.cs
- WindowsGraphicsWrapper.cs
- View.cs
- HandlerBase.cs