Code:
/ 4.0 / 4.0 / 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.
// ==++==
//
// 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
- BaseTemplateParser.cs
- FormsAuthenticationUser.cs
- FixedBufferAttribute.cs
- WeakReadOnlyCollection.cs
- EventSinkHelperWriter.cs
- TransferRequestHandler.cs
- EdmScalarPropertyAttribute.cs
- DataGridViewElement.cs
- ExpressionSelection.cs
- CompressionTransform.cs
- AsyncResult.cs
- ResourceType.cs
- GridViewRow.cs
- ReadOnlyKeyedCollection.cs
- AudioBase.cs
- StorageEndPropertyMapping.cs
- LinqDataSourceContextEventArgs.cs
- WindowsStatusBar.cs
- CodeSubDirectory.cs
- XmlSerializerVersionAttribute.cs
- figurelengthconverter.cs
- Queue.cs
- MimeAnyImporter.cs
- XmlWrappingReader.cs
- RMEnrollmentPage1.cs
- AnnotationResourceCollection.cs
- FileAuthorizationModule.cs
- PreProcessor.cs
- AliasedSlot.cs
- ServerIdentity.cs
- ActiveXHost.cs
- XamlSerializationHelper.cs
- File.cs
- EntityDataSourceQueryBuilder.cs
- SettingsProperty.cs
- SqlXmlStorage.cs
- CompositeDataBoundControl.cs
- GenericAuthenticationEventArgs.cs
- ModelItemKeyValuePair.cs
- SuppressMessageAttribute.cs
- DataRecord.cs
- DSACryptoServiceProvider.cs
- ColumnWidthChangedEvent.cs
- PropertyGridEditorPart.cs
- CodeSubDirectoriesCollection.cs
- XslTransformFileEditor.cs
- SoapFormatterSinks.cs
- VarRemapper.cs
- Utility.cs
- GuidelineCollection.cs
- PartitionResolver.cs
- securitycriticaldataformultiplegetandset.cs
- ClassHandlersStore.cs
- StatusBarPanel.cs
- XmlSchemaSimpleContent.cs
- ElementsClipboardData.cs
- XmlSchemaComplexContentRestriction.cs
- Grant.cs
- MasterPageCodeDomTreeGenerator.cs
- Ticks.cs
- DiffuseMaterial.cs
- BitmapEffect.cs
- CutCopyPasteHelper.cs
- _NTAuthentication.cs
- TypeViewSchema.cs
- EnumerableRowCollection.cs
- AsyncOperationManager.cs
- TextDecorationCollection.cs
- ItemCollection.cs
- ElasticEase.cs
- XmlLanguageConverter.cs
- ReadOnlyCollectionBase.cs
- WebSysDefaultValueAttribute.cs
- Internal.cs
- XmlSchemaSimpleTypeList.cs
- CharAnimationBase.cs
- StateRuntime.cs
- DropShadowBitmapEffect.cs
- TextCharacters.cs
- DataColumnCollection.cs
- BitmapEffectInputData.cs
- HttpContextServiceHost.cs
- StateDesigner.Helpers.cs
- ListControl.cs
- RedBlackList.cs
- PerformanceCounter.cs
- UnknownBitmapDecoder.cs
- RequestCache.cs
- GridViewDesigner.cs
- OneOfScalarConst.cs
- invalidudtexception.cs
- WebPartEventArgs.cs
- PasswordBoxAutomationPeer.cs
- XmlDataSourceNodeDescriptor.cs
- coordinator.cs
- ListViewCommandEventArgs.cs
- PathSegment.cs
- SecurityTokenException.cs
- CardSpaceShim.cs
- BitmapEffectOutputConnector.cs