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
- New.cs
- figurelengthconverter.cs
- StyleHelper.cs
- BookmarkWorkItem.cs
- GPRECTF.cs
- ModelVisual3D.cs
- TextTreeTextBlock.cs
- CustomSignedXml.cs
- RightNameExpirationInfoPair.cs
- TreeView.cs
- LineMetrics.cs
- ProtocolElementCollection.cs
- Form.cs
- ContractsBCL.cs
- ChannelTerminatedException.cs
- Vector3D.cs
- ProfessionalColors.cs
- ResXFileRef.cs
- __Filters.cs
- DesignerCommandSet.cs
- SubclassTypeValidator.cs
- DesignerDataConnection.cs
- SHA1Managed.cs
- IPAddressCollection.cs
- filewebrequest.cs
- PrintDialog.cs
- LayoutManager.cs
- SMSvcHost.cs
- Compensation.cs
- XpsDocument.cs
- ArithmeticException.cs
- followingsibling.cs
- HotCommands.cs
- ResourceDisplayNameAttribute.cs
- HotSpotCollection.cs
- WebPartUserCapability.cs
- ArrayElementGridEntry.cs
- DigestTraceRecordHelper.cs
- ComponentDispatcherThread.cs
- HtmlTableRow.cs
- Number.cs
- unitconverter.cs
- PathNode.cs
- SoapReflector.cs
- MessageHeader.cs
- RsaKeyIdentifierClause.cs
- UserPreferenceChangingEventArgs.cs
- ContainerFilterService.cs
- DataRelation.cs
- SafeEventLogReadHandle.cs
- SettingsProviderCollection.cs
- TemplateKeyConverter.cs
- EntityContainer.cs
- Hashtable.cs
- GridSplitter.cs
- HandlerBase.cs
- SingleSelectRootGridEntry.cs
- WindowsUpDown.cs
- SiteMapPathDesigner.cs
- DataTableNewRowEvent.cs
- ChildrenQuery.cs
- ContainerUtilities.cs
- FreeFormDragDropManager.cs
- SessionState.cs
- DeviceFiltersSection.cs
- ListViewSortEventArgs.cs
- BitmapEffectvisualstate.cs
- WebPartConnectionsEventArgs.cs
- RegexMatchCollection.cs
- ListViewItem.cs
- AppearanceEditorPart.cs
- SessionEndingCancelEventArgs.cs
- DbConnectionOptions.cs
- SystemResources.cs
- DataGridViewColumnHeaderCell.cs
- SiteMapHierarchicalDataSourceView.cs
- ObjectDesignerDataSourceView.cs
- FlatButtonAppearance.cs
- EntityDesignPluralizationHandler.cs
- DBCSCodePageEncoding.cs
- MessageEventSubscriptionService.cs
- CompilationRelaxations.cs
- CustomErrorsSectionWrapper.cs
- ByteAnimationUsingKeyFrames.cs
- CodeFieldReferenceExpression.cs
- ListGeneralPage.cs
- ConfigurationElement.cs
- RootProfilePropertySettingsCollection.cs
- ObjectNotFoundException.cs
- mediaeventargs.cs
- XmlSchemaImport.cs
- Matrix.cs
- ToolStripItem.cs
- LambdaCompiler.Statements.cs
- BeginEvent.cs
- SetStateDesigner.cs
- FixedBufferAttribute.cs
- CorrelationQuery.cs
- FormsAuthenticationModule.cs
- AudioException.cs