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
- ResourceCategoryAttribute.cs
- TemplateColumn.cs
- ClientSettingsProvider.cs
- SQLInt64Storage.cs
- TextLineBreak.cs
- TypeHelper.cs
- WebPartMinimizeVerb.cs
- SQLByteStorage.cs
- IODescriptionAttribute.cs
- AttributeQuery.cs
- WebReferencesBuildProvider.cs
- EntityTypeEmitter.cs
- LineGeometry.cs
- TypeUtils.cs
- ValueQuery.cs
- ElementHost.cs
- Application.cs
- LineServices.cs
- GroupItem.cs
- FormatterServices.cs
- BrowserCapabilitiesFactoryBase.cs
- MemberListBinding.cs
- RootBrowserWindowAutomationPeer.cs
- BlurBitmapEffect.cs
- ValueConversionAttribute.cs
- MergeFailedEvent.cs
- ModelItemDictionaryImpl.cs
- MessageBox.cs
- WeakReferenceEnumerator.cs
- UnsafeNativeMethods.cs
- ContainerTracking.cs
- AnimationTimeline.cs
- BitmapEffectGeneralTransform.cs
- Timer.cs
- TaskHelper.cs
- HexParser.cs
- InternalEnumValidatorAttribute.cs
- WindowsTab.cs
- SqlCacheDependencySection.cs
- EntityDataSourceChangedEventArgs.cs
- sitestring.cs
- HttpWebRequest.cs
- X509ChainElement.cs
- HiddenFieldPageStatePersister.cs
- MessageAction.cs
- CollectionsUtil.cs
- TypeConvertions.cs
- SingleAnimationBase.cs
- AuthenticationSchemesHelper.cs
- BitmapEffectState.cs
- ConnectionStringSettings.cs
- CodeArgumentReferenceExpression.cs
- RequestCachePolicyConverter.cs
- EntityContainerRelationshipSetEnd.cs
- UpdateException.cs
- SoapInteropTypes.cs
- CallbackValidatorAttribute.cs
- CharacterHit.cs
- OdbcDataAdapter.cs
- SmiGettersStream.cs
- ChtmlTextWriter.cs
- HttpWebRequestElement.cs
- SqlCommandSet.cs
- XmlPropertyBag.cs
- ThreadPool.cs
- basecomparevalidator.cs
- DockProviderWrapper.cs
- AlternateView.cs
- WindowsListViewItem.cs
- BuildProvider.cs
- WindowsListView.cs
- AttributeCollection.cs
- OrthographicCamera.cs
- OdbcUtils.cs
- XmlNodeChangedEventManager.cs
- SafeSystemMetrics.cs
- GlyphInfoList.cs
- DataViewSettingCollection.cs
- BrowserDefinition.cs
- SEHException.cs
- FontFamilyValueSerializer.cs
- AttributeUsageAttribute.cs
- X509Certificate2.cs
- HttpRequestBase.cs
- RequestResizeEvent.cs
- DiscoveryClientProtocol.cs
- _AutoWebProxyScriptWrapper.cs
- MSAAEventDispatcher.cs
- EntityDataSourceWrapper.cs
- WebEvents.cs
- DetailsView.cs
- EntityDataReader.cs
- GenericRootAutomationPeer.cs
- SortExpressionBuilder.cs
- TextWriter.cs
- Compiler.cs
- SamlSubjectStatement.cs
- BindingEditor.xaml.cs
- AddIn.cs
- InputMethod.cs