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
- SystemColorTracker.cs
- XmlSchemaAppInfo.cs
- Attributes.cs
- PrivilegedConfigurationManager.cs
- Misc.cs
- MulticastIPAddressInformationCollection.cs
- _Rfc2616CacheValidators.cs
- PropertyEmitter.cs
- MemberPath.cs
- FactoryGenerator.cs
- RelationshipNavigation.cs
- MembershipPasswordException.cs
- MgmtConfigurationRecord.cs
- ToolboxComponentsCreatedEventArgs.cs
- HttpPostProtocolReflector.cs
- SecurityHelper.cs
- GenericPrincipal.cs
- Quaternion.cs
- EarlyBoundInfo.cs
- SchemaConstraints.cs
- CryptoApi.cs
- ErrorProvider.cs
- SByte.cs
- TextElementEnumerator.cs
- ExtendedPropertyCollection.cs
- DocumentSchemaValidator.cs
- ScriptModule.cs
- LoginCancelEventArgs.cs
- MatrixTransform3D.cs
- TypeLoadException.cs
- RowToFieldTransformer.cs
- DataObject.cs
- FrameworkTemplate.cs
- XmlSchemaSimpleTypeUnion.cs
- ExtendedProtectionPolicy.cs
- PostBackTrigger.cs
- X509Chain.cs
- ProvideValueServiceProvider.cs
- X509UI.cs
- Switch.cs
- DataGridToolTip.cs
- TypeValidationEventArgs.cs
- Table.cs
- PictureBox.cs
- UseManagedPresentationElement.cs
- TextBoxAutoCompleteSourceConverter.cs
- SmtpFailedRecipientsException.cs
- AddIn.cs
- RegexMatchCollection.cs
- ValidatedControlConverter.cs
- ConstraintManager.cs
- DiscoveryClientReferences.cs
- XPathCompileException.cs
- AutomationAttributeInfo.cs
- ScrollItemPattern.cs
- MaskInputRejectedEventArgs.cs
- newitemfactory.cs
- CodeIndexerExpression.cs
- DiagnosticsConfigurationHandler.cs
- SafeProcessHandle.cs
- ArcSegment.cs
- ConfigXmlWhitespace.cs
- DataErrorValidationRule.cs
- SourceElementsCollection.cs
- Rss20FeedFormatter.cs
- CounterSetInstance.cs
- ScriptReference.cs
- ReferenceConverter.cs
- RepeatBehaviorConverter.cs
- RepeatBehaviorConverter.cs
- SocketException.cs
- ReverseComparer.cs
- Socket.cs
- AppManager.cs
- DataBindingCollection.cs
- Console.cs
- QueryExpression.cs
- ProfileParameter.cs
- PageCache.cs
- XmlSchemaDatatype.cs
- Condition.cs
- PageHandlerFactory.cs
- IResourceProvider.cs
- SkewTransform.cs
- XmlDataSourceDesigner.cs
- RelationshipSet.cs
- HwndProxyElementProvider.cs
- AssemblyAttributes.cs
- FunctionUpdateCommand.cs
- CalculatedColumn.cs
- ClientSettingsSection.cs
- WebPartEditorOkVerb.cs
- TableDetailsRow.cs
- TreeNode.cs
- MetabaseReader.cs
- Rect.cs
- XmlSerializerAssemblyAttribute.cs
- EntityProviderServices.cs
- HtmlShimManager.cs
- ModuleBuilder.cs