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
- DataGridColumnReorderingEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- ComponentCommands.cs
- DataColumnMapping.cs
- AssociationSetMetadata.cs
- TdsEnums.cs
- COSERVERINFO.cs
- GcSettings.cs
- AttributeInfo.cs
- Point3D.cs
- OneOfScalarConst.cs
- FlowDocumentFormatter.cs
- ToolStripItemImageRenderEventArgs.cs
- Screen.cs
- Pts.cs
- HtmlEmptyTagControlBuilder.cs
- RepeaterItem.cs
- CodeGeneratorAttribute.cs
- NamedPipeProcessProtocolHandler.cs
- ProtocolsConfigurationEntry.cs
- StateDesignerConnector.cs
- SettingsBindableAttribute.cs
- XslException.cs
- ResourceExpressionEditor.cs
- EntityDataSourceWrapperCollection.cs
- StreamHelper.cs
- ExpressionBindingCollection.cs
- GeometryDrawing.cs
- FormatterConverter.cs
- ControlIdConverter.cs
- ItemAutomationPeer.cs
- ProjectionPruner.cs
- QueryStringParameter.cs
- SuppressMergeCheckAttribute.cs
- EDesignUtil.cs
- QueryExtender.cs
- MetaDataInfo.cs
- PassportAuthenticationEventArgs.cs
- ReadOnlyTernaryTree.cs
- ServiceContractViewControl.Designer.cs
- shaperfactoryquerycachekey.cs
- UseLicense.cs
- GroupItem.cs
- NamespaceQuery.cs
- BasicHttpBindingElement.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlObjectSerializerReadContext.cs
- NextPreviousPagerField.cs
- ProfileSection.cs
- ScriptModule.cs
- MailMessage.cs
- SectionRecord.cs
- StrokeCollection.cs
- BatchStream.cs
- NestedContainer.cs
- AccessViolationException.cs
- SimpleMailWebEventProvider.cs
- DynamicDiscoSearcher.cs
- MiniCustomAttributeInfo.cs
- TextRange.cs
- SystemResourceKey.cs
- listviewsubitemcollectioneditor.cs
- BitmapMetadataEnumerator.cs
- Source.cs
- ClientRuntimeConfig.cs
- InkCanvasAutomationPeer.cs
- StatusBarPanelClickEvent.cs
- TriState.cs
- AsymmetricKeyExchangeDeformatter.cs
- HopperCache.cs
- WebPartsPersonalizationAuthorization.cs
- ListControlConvertEventArgs.cs
- HttpCacheVary.cs
- WebConfigurationHost.cs
- CommentAction.cs
- HtmlForm.cs
- SafeProcessHandle.cs
- DelimitedListTraceListener.cs
- Overlapped.cs
- CodeMemberField.cs
- DynamicResourceExtensionConverter.cs
- LogRecordSequence.cs
- MouseActionValueSerializer.cs
- RegexGroupCollection.cs
- MsmqIntegrationOutputChannel.cs
- Drawing.cs
- AppSettingsExpressionBuilder.cs
- SchemeSettingElement.cs
- MobileErrorInfo.cs
- ConfigXmlElement.cs
- DataControlFieldCollection.cs
- CompositeDuplexBindingElementImporter.cs
- ECDiffieHellmanCngPublicKey.cs
- MsmqAppDomainProtocolHandler.cs
- HashCodeCombiner.cs
- hresults.cs
- HealthMonitoringSectionHelper.cs
- ProtectedConfigurationSection.cs
- MobileControlPersister.cs
- DispatcherTimer.cs