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
- EntityDataSourceColumn.cs
- AbstractDataSvcMapFileLoader.cs
- DesignerCatalogPartChrome.cs
- PropertyPath.cs
- QilLoop.cs
- DataControlField.cs
- DodSequenceMerge.cs
- FilePresentation.cs
- ThrowHelper.cs
- PropertyMetadata.cs
- TagMapCollection.cs
- BitmapFrameDecode.cs
- EventLogger.cs
- WebPartConnectionsEventArgs.cs
- xmlformatgeneratorstatics.cs
- ImpersonateTokenRef.cs
- SessionViewState.cs
- RegexCompilationInfo.cs
- XPathParser.cs
- QilName.cs
- ContextStack.cs
- FrameworkElementAutomationPeer.cs
- ConstantExpression.cs
- PassportAuthenticationEventArgs.cs
- ConfigXmlElement.cs
- SoapAttributeOverrides.cs
- DesignerMetadata.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DesignTimeParseData.cs
- Mutex.cs
- EncryptedReference.cs
- MiniAssembly.cs
- CommandField.cs
- InlineCollection.cs
- HostSecurityManager.cs
- EndPoint.cs
- MetadataPropertyCollection.cs
- MimeTypePropertyAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- WindowsAuthenticationModule.cs
- HttpAsyncResult.cs
- MenuRendererClassic.cs
- UnsafeNativeMethods.cs
- ExtenderProvidedPropertyAttribute.cs
- SourceSwitch.cs
- ImportDesigner.xaml.cs
- DataColumnMappingCollection.cs
- IconHelper.cs
- BitmapFrameDecode.cs
- GiveFeedbackEventArgs.cs
- StorageMappingItemCollection.cs
- WmpBitmapEncoder.cs
- PresentationAppDomainManager.cs
- AssertUtility.cs
- ObjectDesignerDataSourceView.cs
- SecurityContextSecurityTokenAuthenticator.cs
- x509utils.cs
- XmlDataContract.cs
- RawStylusInputCustomData.cs
- BamlBinaryReader.cs
- ObjectAnimationBase.cs
- ColumnWidthChangedEvent.cs
- VarInfo.cs
- JsonObjectDataContract.cs
- Int32Rect.cs
- XamlTypeMapperSchemaContext.cs
- XmlAttributeAttribute.cs
- XmlnsDictionary.cs
- XmlNamespaceManager.cs
- TableLayoutPanelCodeDomSerializer.cs
- SqlCacheDependency.cs
- ContractCodeDomInfo.cs
- DataException.cs
- MailSettingsSection.cs
- ContentTextAutomationPeer.cs
- TypeAccessException.cs
- MsmqPoisonMessageException.cs
- StringSource.cs
- DocumentApplication.cs
- TextServicesHost.cs
- StrokeNode.cs
- RelativeSource.cs
- CodeRegionDirective.cs
- StringBuilder.cs
- DatePickerDateValidationErrorEventArgs.cs
- CompressionTransform.cs
- DataRelationPropertyDescriptor.cs
- RegistrySecurity.cs
- SchemaImporterExtensionElementCollection.cs
- MenuItemCollection.cs
- PlacementWorkspace.cs
- GridViewCancelEditEventArgs.cs
- SynchronizingStream.cs
- ViewGenerator.cs
- HtmlShim.cs
- UIElementParagraph.cs
- CodeTypeReferenceCollection.cs
- WindowsTab.cs
- PeerNameRecordCollection.cs
- CellIdBoolean.cs