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
- TabletDeviceInfo.cs
- DisplayNameAttribute.cs
- Currency.cs
- SqlClientWrapperSmiStreamChars.cs
- WizardPanelChangingEventArgs.cs
- XAMLParseException.cs
- FileDetails.cs
- RelatedPropertyManager.cs
- CodeBlockBuilder.cs
- PeerEndPoint.cs
- DataSourceControlBuilder.cs
- Keyboard.cs
- PermissionSetTriple.cs
- PeerToPeerException.cs
- Positioning.cs
- InputProcessorProfilesLoader.cs
- DesignerVerb.cs
- NativeObjectSecurity.cs
- mansign.cs
- FixedTextPointer.cs
- FormClosedEvent.cs
- BaseServiceProvider.cs
- SqlDataSourceQuery.cs
- LinkArea.cs
- DataGridViewRowsAddedEventArgs.cs
- KnownIds.cs
- SqlInfoMessageEvent.cs
- ArrayExtension.cs
- TraceListeners.cs
- ParseElementCollection.cs
- BlurEffect.cs
- MappingMetadataHelper.cs
- CodeTypeReferenceExpression.cs
- ValidatorUtils.cs
- Stack.cs
- ChineseLunisolarCalendar.cs
- TrustDriver.cs
- RepeatEnumerable.cs
- DispatchChannelSink.cs
- PageEventArgs.cs
- PassportIdentity.cs
- PropertyInfoSet.cs
- HandleCollector.cs
- WebPartConnectionsConnectVerb.cs
- SafeSecurityHandles.cs
- WebBrowser.cs
- MappingSource.cs
- DbParameterCollection.cs
- DataGridViewColumnHeaderCell.cs
- selecteditemcollection.cs
- MemoryStream.cs
- Int64.cs
- FloaterParagraph.cs
- RuleCache.cs
- CanonicalXml.cs
- EncoderParameter.cs
- DoubleAnimation.cs
- ECDiffieHellmanPublicKey.cs
- IISMapPath.cs
- FrameworkElementAutomationPeer.cs
- InputMethodStateTypeInfo.cs
- ContainerAction.cs
- KeyEventArgs.cs
- FontFamilyIdentifier.cs
- Focus.cs
- ResourcesBuildProvider.cs
- KeyPullup.cs
- ToolStripLabel.cs
- PagesSection.cs
- SqlUtil.cs
- SapiAttributeParser.cs
- DrawingDrawingContext.cs
- RSAOAEPKeyExchangeDeformatter.cs
- VoiceChangeEventArgs.cs
- RectangleConverter.cs
- SyndicationSerializer.cs
- XmlCharCheckingReader.cs
- AuthenticatedStream.cs
- ToolStripDropTargetManager.cs
- RegexCompiler.cs
- DesignerAutoFormatCollection.cs
- WizardStepBase.cs
- DataGridComboBoxColumn.cs
- DetailsViewPagerRow.cs
- Attributes.cs
- WeakReadOnlyCollection.cs
- PreservationFileReader.cs
- ControlParameter.cs
- GregorianCalendarHelper.cs
- Repeater.cs
- XmlReflectionImporter.cs
- MLangCodePageEncoding.cs
- OleDbDataReader.cs
- GeometryGroup.cs
- iisPickupDirectory.cs
- SimpleMailWebEventProvider.cs
- ListView.cs
- EFDataModelProvider.cs
- SqlGatherProducedAliases.cs
- ObjectTypeMapping.cs