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
- WebReferenceOptions.cs
- RowToFieldTransformer.cs
- BoundingRectTracker.cs
- ServiceHostingEnvironment.cs
- XmlSchemaException.cs
- ColumnResizeUndoUnit.cs
- RepeaterCommandEventArgs.cs
- PartitionResolver.cs
- XmlSignatureManifest.cs
- UnconditionalPolicy.cs
- CalendarAutoFormatDialog.cs
- ConfigXmlComment.cs
- ReferenceEqualityComparer.cs
- ExpandCollapsePattern.cs
- DesignerToolboxInfo.cs
- XPathNodeList.cs
- FileStream.cs
- ContentHostHelper.cs
- DesignerActionGlyph.cs
- DragDropHelper.cs
- XmlAttribute.cs
- ParameterReplacerVisitor.cs
- Line.cs
- ChildTable.cs
- RegexFCD.cs
- ButtonChrome.cs
- CookielessHelper.cs
- VirtualPathUtility.cs
- OptionalMessageQuery.cs
- JavascriptXmlWriterWrapper.cs
- SyndicationDeserializer.cs
- CultureTable.cs
- _ContextAwareResult.cs
- LinearQuaternionKeyFrame.cs
- SQLDateTimeStorage.cs
- LinqDataSourceDeleteEventArgs.cs
- ErrorStyle.cs
- TransformerConfigurationWizardBase.cs
- ParameterModifier.cs
- PrimaryKeyTypeConverter.cs
- PrimarySelectionGlyph.cs
- SoapExtensionStream.cs
- SQLDateTimeStorage.cs
- InvalidProgramException.cs
- _SafeNetHandles.cs
- RequestDescription.cs
- XmlAtomicValue.cs
- OpCodes.cs
- complextypematerializer.cs
- WindowsListViewGroupHelper.cs
- UIElement3D.cs
- OdbcParameter.cs
- TemplateColumn.cs
- ClientOptions.cs
- NetStream.cs
- SharedConnectionInfo.cs
- ExpressionCopier.cs
- DataGridState.cs
- MetadataWorkspace.cs
- WebServiceFault.cs
- WindowsTab.cs
- SessionParameter.cs
- TypeDescriptionProviderAttribute.cs
- GeneratedContractType.cs
- XmlSchemaSearchPattern.cs
- AdjustableArrowCap.cs
- CommonDialog.cs
- XhtmlConformanceSection.cs
- DbProviderManifest.cs
- precedingquery.cs
- SingleQueryOperator.cs
- _DisconnectOverlappedAsyncResult.cs
- MatrixValueSerializer.cs
- CodeGotoStatement.cs
- UserControlBuildProvider.cs
- ApplyImportsAction.cs
- OletxResourceManager.cs
- SettingsPropertyIsReadOnlyException.cs
- XPathException.cs
- LabelExpression.cs
- StaticContext.cs
- SystemThemeKey.cs
- NopReturnReader.cs
- LexicalChunk.cs
- TransformerConfigurationWizardBase.cs
- AuthenticationModeHelper.cs
- FacetDescription.cs
- ClientTargetCollection.cs
- LayoutTable.cs
- DataGridTextBoxColumn.cs
- RtfToXamlReader.cs
- RuntimeWrappedException.cs
- Debug.cs
- ZipArchive.cs
- BitVector32.cs
- SQLBoolean.cs
- SmtpNetworkElement.cs
- Root.cs
- SemanticAnalyzer.cs
- GridItemCollection.cs