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
- LogSwitch.cs
- EventBookmark.cs
- CurrentChangingEventManager.cs
- CodeAttributeArgumentCollection.cs
- ErrorWebPart.cs
- Latin1Encoding.cs
- Wildcard.cs
- PictureBox.cs
- IgnoreFlushAndCloseStream.cs
- SettingsProperty.cs
- XmlNode.cs
- IImplicitResourceProvider.cs
- PartialCachingControl.cs
- TableItemStyle.cs
- SharedUtils.cs
- FloatSumAggregationOperator.cs
- DbCommandDefinition.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- UdpDuplexChannel.cs
- DispatcherOperation.cs
- FontStretch.cs
- XmlParser.cs
- WinEventHandler.cs
- Size3D.cs
- ClosableStream.cs
- OracleParameterBinding.cs
- Function.cs
- VectorAnimationUsingKeyFrames.cs
- ZipIOExtraFieldPaddingElement.cs
- DetailsViewInsertEventArgs.cs
- ColumnResizeUndoUnit.cs
- ScriptServiceAttribute.cs
- HtmlInputCheckBox.cs
- BoundColumn.cs
- CompiledQuery.cs
- RelatedView.cs
- XPathNodeHelper.cs
- TraceFilter.cs
- StyleTypedPropertyAttribute.cs
- ModelPropertyDescriptor.cs
- ListManagerBindingsCollection.cs
- FigureParaClient.cs
- SignedXml.cs
- DomainUpDown.cs
- EventLogPermission.cs
- TextParentUndoUnit.cs
- ActiveDocumentEvent.cs
- PagesSection.cs
- CompositeClientFormatter.cs
- AuthenticationManager.cs
- WebPartManagerInternals.cs
- _NetworkingPerfCounters.cs
- BypassElement.cs
- EntityDescriptor.cs
- Path.cs
- ModelItemCollection.cs
- FormViewInsertEventArgs.cs
- ExceptionUtil.cs
- XmlChildNodes.cs
- CodeParameterDeclarationExpressionCollection.cs
- Monitor.cs
- xmlfixedPageInfo.cs
- ResourceBinder.cs
- DateTimeUtil.cs
- AlphaSortedEnumConverter.cs
- ObjectPersistData.cs
- EmptyCollection.cs
- ZoneLinkButton.cs
- CreateUserWizard.cs
- LogRestartAreaEnumerator.cs
- LicenseManager.cs
- Operand.cs
- GeneralTransform2DTo3DTo2D.cs
- BitmapVisualManager.cs
- TcpActivation.cs
- ResourceDictionary.cs
- JapaneseLunisolarCalendar.cs
- FrameworkElement.cs
- Authorization.cs
- TypeConverterHelper.cs
- BaseAsyncResult.cs
- JpegBitmapEncoder.cs
- TreeNodeBinding.cs
- ExceptionHandlerDesigner.cs
- LoginName.cs
- DbConnectionStringCommon.cs
- AutomationPropertyInfo.cs
- DataKey.cs
- DatagridviewDisplayedBandsData.cs
- designeractionbehavior.cs
- SymmetricKeyWrap.cs
- ToolStripPanelDesigner.cs
- DictionarySectionHandler.cs
- FixedDocument.cs
- DrawListViewItemEventArgs.cs
- AddInAdapter.cs
- Stacktrace.cs
- CommandField.cs
- ToolStripSettings.cs
- DefaultExpression.cs