Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventLogStatus.cs / 1305376 / EventLogStatus.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventLogStatus ** ** Purpose: ** This public class describes the status of a particular ** log with respect to an instantiated EventLogReader. ** Since it is possible to instantiate an EventLogReader ** with a query containing multiple logs and the reader can ** be configured to tolerate errors in attaching to those logs, ** this class allows the user to determine exactly what the status ** of those logs is. ============================================================*/ using System; namespace System.Diagnostics.Eventing.Reader{ ////// Describes the status of a particular log with respect to /// an instantiated EventLogReader. Since it is possible to /// instantiate an EventLogReader with a query containing /// multiple logs and the reader can be configured to tolerate /// errors in attaching to those logs, this class allows the /// user to determine exactly what the status of those logs is. /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class EventLogStatus { private string channelName; private int win32ErrorCode; internal EventLogStatus(string channelName, int win32ErrorCode) { this.channelName = channelName; this.win32ErrorCode = win32ErrorCode; } public string LogName { get { return this.channelName; } } public int StatusCode { get { return this.win32ErrorCode; } } } } // 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
- AttributeUsageAttribute.cs
- GeneralTransformCollection.cs
- PageContent.cs
- TextSerializer.cs
- WindowsFormsLinkLabel.cs
- DataSourceCollectionBase.cs
- SolidBrush.cs
- SingleAnimation.cs
- NamespaceEmitter.cs
- DiscardableAttribute.cs
- Listbox.cs
- StyleBamlTreeBuilder.cs
- RenderCapability.cs
- _DisconnectOverlappedAsyncResult.cs
- DataGridViewAddColumnDialog.cs
- MtomMessageEncoder.cs
- ColorContext.cs
- XmlCharCheckingWriter.cs
- ActivityExecutor.cs
- TagPrefixAttribute.cs
- BindingNavigator.cs
- MaskedTextProvider.cs
- ComplexTypeEmitter.cs
- CodeCatchClauseCollection.cs
- WorkflowServiceAttributes.cs
- FixUpCollection.cs
- ZipIOExtraFieldZip64Element.cs
- DataGridViewControlCollection.cs
- ErrorReporting.cs
- SecurityTokenAuthenticator.cs
- VirtualDirectoryMapping.cs
- Decorator.cs
- SiteIdentityPermission.cs
- LockedBorderGlyph.cs
- MembershipUser.cs
- Point3DConverter.cs
- WebPartConnection.cs
- ActivityTypeDesigner.xaml.cs
- SelectionProcessor.cs
- SizeF.cs
- ImageDrawing.cs
- WebHttpDispatchOperationSelectorData.cs
- RoleGroup.cs
- DispatcherExceptionFilterEventArgs.cs
- SendActivityDesigner.cs
- RegexCapture.cs
- DbConnectionPoolCounters.cs
- SqlMethods.cs
- SqlWriter.cs
- GridViewDeleteEventArgs.cs
- TypedReference.cs
- mediaeventargs.cs
- IPPacketInformation.cs
- WorkflowWebService.cs
- PostBackTrigger.cs
- RawStylusInput.cs
- XmlnsDefinitionAttribute.cs
- BufferBuilder.cs
- TabControlCancelEvent.cs
- ImageCollectionCodeDomSerializer.cs
- PrintingPermissionAttribute.cs
- Cursors.cs
- XsltFunctions.cs
- EditorZoneDesigner.cs
- Literal.cs
- NativeMethods.cs
- ByteAnimation.cs
- ComEventsInfo.cs
- AtomContentProperty.cs
- SafeRegistryHandle.cs
- GenerateScriptTypeAttribute.cs
- XmlSortKeyAccumulator.cs
- VirtualDirectoryMappingCollection.cs
- PartitionerQueryOperator.cs
- ParagraphVisual.cs
- AssertUtility.cs
- BitmapEffectOutputConnector.cs
- Stack.cs
- ProfileProvider.cs
- Control.cs
- ListBindingHelper.cs
- Stream.cs
- XMLDiffLoader.cs
- HelloMessageCD1.cs
- ConnectionInterfaceCollection.cs
- NetworkInformationException.cs
- QuaternionAnimationBase.cs
- TextProperties.cs
- GlobalAclOperationRequirement.cs
- TransactionTraceIdentifier.cs
- SslStreamSecurityBindingElement.cs
- InteropAutomationProvider.cs
- JpegBitmapDecoder.cs
- Encoding.cs
- ApplicationTrust.cs
- CalloutQueueItem.cs
- QueryOperationResponseOfT.cs
- HotSpotCollection.cs
- MenuCommands.cs
- CompoundFileDeflateTransform.cs