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
- OracleEncoding.cs
- EdmToObjectNamespaceMap.cs
- SamlSerializer.cs
- DragStartedEventArgs.cs
- ConfigurationCollectionAttribute.cs
- UserUseLicenseDictionaryLoader.cs
- ConsoleKeyInfo.cs
- OdbcConnectionString.cs
- WebPartTransformerCollection.cs
- ConfigXmlText.cs
- TripleDESCryptoServiceProvider.cs
- OracleCommandSet.cs
- LookupBindingPropertiesAttribute.cs
- CombinedHttpChannel.cs
- COM2PropertyPageUITypeConverter.cs
- BufferedStream.cs
- LongPath.cs
- SqlClientWrapperSmiStreamChars.cs
- TextParaLineResult.cs
- LowerCaseStringConverter.cs
- nulltextnavigator.cs
- SubqueryRules.cs
- QilReplaceVisitor.cs
- Journaling.cs
- DependencyObjectType.cs
- RIPEMD160Managed.cs
- Connector.cs
- XmlEnumAttribute.cs
- DebugViewWriter.cs
- GridViewColumnHeaderAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- OuterGlowBitmapEffect.cs
- Binding.cs
- Frame.cs
- Vector.cs
- DayRenderEvent.cs
- Border.cs
- CodeDomSerializer.cs
- WindowsFormsLinkLabel.cs
- ContextTokenTypeConverter.cs
- EventLogRecord.cs
- JapaneseLunisolarCalendar.cs
- HMACSHA256.cs
- DataServiceHost.cs
- FatalException.cs
- TextParagraphProperties.cs
- DataViewSetting.cs
- Thickness.cs
- LineUtil.cs
- LabelAutomationPeer.cs
- IOException.cs
- InfoCardProofToken.cs
- ResXBuildProvider.cs
- IgnoreSection.cs
- CssClassPropertyAttribute.cs
- CodeMethodReturnStatement.cs
- MimeParameter.cs
- ObjectDataSource.cs
- RuleSettings.cs
- BasicHttpBinding.cs
- MimePart.cs
- CollectionChangeEventArgs.cs
- TrustExchangeException.cs
- NumericUpDownAccelerationCollection.cs
- ExceptionRoutedEventArgs.cs
- HighlightVisual.cs
- SafeNativeMethods.cs
- DataListDesigner.cs
- TemplateGroupCollection.cs
- AnnotationStore.cs
- TokenBasedSet.cs
- ListViewItem.cs
- CheckoutException.cs
- SafeRightsManagementPubHandle.cs
- FrameworkElement.cs
- ImageSource.cs
- ColorDialog.cs
- EntityProxyFactory.cs
- filewebresponse.cs
- SweepDirectionValidation.cs
- ApplicationBuildProvider.cs
- SecurityState.cs
- ApplicationContext.cs
- HttpCachePolicyElement.cs
- AlignmentXValidation.cs
- ProvidePropertyAttribute.cs
- XPathNodeHelper.cs
- ToolboxControl.cs
- SweepDirectionValidation.cs
- CommonObjectSecurity.cs
- CheckBoxField.cs
- QuaternionRotation3D.cs
- SmiMetaDataProperty.cs
- SelectedDatesCollection.cs
- Transform3DGroup.cs
- DeferredRunTextReference.cs
- ButtonChrome.cs
- ClientUtils.cs
- GPRECTF.cs
- InlineObject.cs