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
- StateBag.cs
- SqlErrorCollection.cs
- InnerItemCollectionView.cs
- NotFiniteNumberException.cs
- xdrvalidator.cs
- HttpModuleCollection.cs
- DataGridAutomationPeer.cs
- Mouse.cs
- RegexMatch.cs
- PipeStream.cs
- MaskedTextBox.cs
- GridItem.cs
- WindowsComboBox.cs
- XmlSubtreeReader.cs
- TableRowCollection.cs
- ServiceModelActivationSectionGroup.cs
- UnitySerializationHolder.cs
- ElementNotEnabledException.cs
- basecomparevalidator.cs
- LayoutUtils.cs
- ActiveXContainer.cs
- MouseBinding.cs
- TreeNode.cs
- InvalidOperationException.cs
- RegistrationServices.cs
- DesignConnectionCollection.cs
- ExecutionContext.cs
- DeleteHelper.cs
- BatchParser.cs
- HtmlSelect.cs
- MimeObjectFactory.cs
- SqlConnectionString.cs
- FixedTextContainer.cs
- RotationValidation.cs
- odbcmetadatafactory.cs
- IisNotInstalledException.cs
- Baml6ConstructorInfo.cs
- DescendantQuery.cs
- ControlValuePropertyAttribute.cs
- BitmapEffectInput.cs
- TransformProviderWrapper.cs
- SoapHeader.cs
- QuaternionRotation3D.cs
- ObsoleteAttribute.cs
- HtmlUtf8RawTextWriter.cs
- TreeWalker.cs
- ItemContainerGenerator.cs
- HostingEnvironmentException.cs
- BoundColumn.cs
- X509InitiatorCertificateClientElement.cs
- QueueProcessor.cs
- CollectionContainer.cs
- EntityModelSchemaGenerator.cs
- XPathNavigatorReader.cs
- Deserializer.cs
- PersonalizationAdministration.cs
- MultipartIdentifier.cs
- TypeReference.cs
- DataTablePropertyDescriptor.cs
- RecommendedAsConfigurableAttribute.cs
- Clock.cs
- DataGridViewCellMouseEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- Missing.cs
- MaskedTextBox.cs
- XmlEnumAttribute.cs
- FileDialog.cs
- DescendantOverDescendantQuery.cs
- ScriptingWebServicesSectionGroup.cs
- TreeNodeBinding.cs
- HttpValueCollection.cs
- EntityClientCacheEntry.cs
- PartialCachingAttribute.cs
- XmlChildEnumerator.cs
- PauseStoryboard.cs
- IdnElement.cs
- Configuration.cs
- XmlSchemaInferenceException.cs
- SByte.cs
- PeerCollaborationPermission.cs
- RemoteWebConfigurationHost.cs
- RewritingPass.cs
- EventListener.cs
- SettingsPropertyValue.cs
- CanonicalXml.cs
- DebugView.cs
- VScrollProperties.cs
- GraphicsPath.cs
- EdmFunctionAttribute.cs
- ExceptQueryOperator.cs
- CallSiteHelpers.cs
- DockPatternIdentifiers.cs
- TraceLevelStore.cs
- FtpWebResponse.cs
- SoapParser.cs
- DependencyPropertyConverter.cs
- FontSourceCollection.cs
- UInt16.cs
- Tuple.cs
- SecurityUtils.cs