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
- ControlCodeDomSerializer.cs
- AssemblyHelper.cs
- StringFunctions.cs
- ConnectionManagementElementCollection.cs
- XmlImplementation.cs
- WmlFormAdapter.cs
- AdapterUtil.cs
- TextRenderer.cs
- EnvelopeVersion.cs
- loginstatus.cs
- Expression.cs
- VersionedStream.cs
- IDReferencePropertyAttribute.cs
- StrongNameKeyPair.cs
- MasterPageCodeDomTreeGenerator.cs
- HealthMonitoringSection.cs
- ValidationErrorEventArgs.cs
- ConfigXmlComment.cs
- AutoResetEvent.cs
- JournalEntry.cs
- SecurityAlgorithmSuiteConverter.cs
- DesignerSerializerAttribute.cs
- Binding.cs
- AssertSection.cs
- ByteStack.cs
- AccessText.cs
- Debug.cs
- _NativeSSPI.cs
- OpenTypeLayout.cs
- ObjectDataSourceView.cs
- EntityDataSourceContextDisposingEventArgs.cs
- XmlSequenceWriter.cs
- DataGridTable.cs
- NoneExcludedImageIndexConverter.cs
- CharAnimationUsingKeyFrames.cs
- DataGridCellClipboardEventArgs.cs
- DbModificationClause.cs
- validationstate.cs
- VectorValueSerializer.cs
- XmlNodeChangedEventManager.cs
- SchemaNamespaceManager.cs
- XPathDocument.cs
- EditorPartCollection.cs
- SerializationInfo.cs
- XmlNavigatorFilter.cs
- Point3DAnimationBase.cs
- PixelFormatConverter.cs
- ResourceProviderFactory.cs
- LightweightCodeGenerator.cs
- StorageComplexPropertyMapping.cs
- RecordManager.cs
- DataTableMapping.cs
- DecoderBestFitFallback.cs
- TypeExtension.cs
- DiscoveryClientOutputChannel.cs
- UriPrefixTable.cs
- SoapElementAttribute.cs
- DecimalAnimation.cs
- TypeFieldSchema.cs
- ModuleBuilder.cs
- FirewallWrapper.cs
- listitem.cs
- SingleStorage.cs
- WebHttpEndpointElement.cs
- SqlErrorCollection.cs
- UserControlCodeDomTreeGenerator.cs
- SubMenuStyle.cs
- HtmlTableRow.cs
- DataColumnCollection.cs
- BindingContext.cs
- ProcessingInstructionAction.cs
- NativeMethods.cs
- _NestedSingleAsyncResult.cs
- RegistrationServices.cs
- OutOfMemoryException.cs
- CodeDomComponentSerializationService.cs
- securestring.cs
- Typeface.cs
- DataGridCell.cs
- DataGridCommandEventArgs.cs
- mactripleDES.cs
- MenuEventArgs.cs
- LabelLiteral.cs
- DefaultEventAttribute.cs
- MemberNameValidator.cs
- StandardBindingCollectionElement.cs
- RijndaelManaged.cs
- NavigationService.cs
- securitymgrsite.cs
- GridViewUpdatedEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- PrintControllerWithStatusDialog.cs
- CodeLinePragma.cs
- DataColumnMapping.cs
- Predicate.cs
- WsdlBuildProvider.cs
- DateTimeValueSerializer.cs
- WhitespaceRule.cs
- LinearKeyFrames.cs
- DbBuffer.cs