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
- ViewGenResults.cs
- DocumentPageView.cs
- PowerStatus.cs
- ListChangedEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- ToolBar.cs
- EditorZone.cs
- PerfService.cs
- Table.cs
- _Connection.cs
- SchemaElementDecl.cs
- TrustSection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- IncomingWebRequestContext.cs
- EventData.cs
- Row.cs
- Marshal.cs
- SqlClientFactory.cs
- AllMembershipCondition.cs
- DataSourceGroupCollection.cs
- DataGridTextBox.cs
- KeyBinding.cs
- DataGridViewRowConverter.cs
- XsdDateTime.cs
- References.cs
- DbProviderFactory.cs
- AnimationLayer.cs
- NamespaceDecl.cs
- DataBindingList.cs
- SafeCryptContextHandle.cs
- ButtonChrome.cs
- FolderLevelBuildProvider.cs
- HttpRuntimeSection.cs
- ISessionStateStore.cs
- SessionPageStateSection.cs
- HttpHostedTransportConfiguration.cs
- FieldCollectionEditor.cs
- BufferedOutputStream.cs
- ToolStripSeparatorRenderEventArgs.cs
- NumberFunctions.cs
- _SpnDictionary.cs
- SystemEvents.cs
- BufferModesCollection.cs
- BatchWriter.cs
- FilteredAttributeCollection.cs
- AnonymousIdentificationModule.cs
- SemanticResolver.cs
- CodeDomLoader.cs
- SqlBooleanMismatchVisitor.cs
- Formatter.cs
- SortedSetDebugView.cs
- UpdatePanelControlTrigger.cs
- PeerName.cs
- ReliabilityContractAttribute.cs
- ListBoxAutomationPeer.cs
- VerticalAlignConverter.cs
- UTF8Encoding.cs
- SqlColumnizer.cs
- HtmlWindow.cs
- RowBinding.cs
- ConnectionConsumerAttribute.cs
- Deserializer.cs
- GB18030Encoding.cs
- LambdaCompiler.ControlFlow.cs
- XappLauncher.cs
- Bits.cs
- Span.cs
- XmlSerializerNamespaces.cs
- pingexception.cs
- PropertyCondition.cs
- XslCompiledTransform.cs
- ServiceContractGenerationContext.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataTableExtensions.cs
- RC2.cs
- DateBoldEvent.cs
- Message.cs
- SqlDataRecord.cs
- followingquery.cs
- HelpInfo.cs
- SwitchExpression.cs
- SymmetricAlgorithm.cs
- ObjectNavigationPropertyMapping.cs
- SchemaHelper.cs
- MemberJoinTreeNode.cs
- AssemblyResourceLoader.cs
- NetNamedPipeBinding.cs
- DrawingImage.cs
- EmptyEnumerable.cs
- TypeConstant.cs
- FreezableDefaultValueFactory.cs
- PagedDataSource.cs
- ResourcesChangeInfo.cs
- MetabaseServerConfig.cs
- XmlIgnoreAttribute.cs
- DynamicExpression.cs
- SspiSafeHandles.cs
- BamlTreeMap.cs
- Screen.cs
- SignatureTargetIdManager.cs