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
- ObjectDataSourceMethodEventArgs.cs
- XPathNavigatorReader.cs
- DataGridViewCellConverter.cs
- MatrixIndependentAnimationStorage.cs
- StandardBindingCollectionElement.cs
- VirtualizingPanel.cs
- DateTimeConstantAttribute.cs
- SqlDataSourceConnectionPanel.cs
- SystemColorTracker.cs
- BuildManagerHost.cs
- AdornerHitTestResult.cs
- WinEventTracker.cs
- ParserStack.cs
- Latin1Encoding.cs
- ExpressionEditor.cs
- HMACSHA1.cs
- ApplicationServiceHelper.cs
- DataKeyArray.cs
- COM2PropertyDescriptor.cs
- Debug.cs
- RankException.cs
- LicenseException.cs
- DataGridCell.cs
- AudioBase.cs
- DbDataSourceEnumerator.cs
- DocumentOrderComparer.cs
- HttpStreamMessageEncoderFactory.cs
- basevalidator.cs
- DoubleAnimation.cs
- WebServicesInteroperability.cs
- CatalogZoneDesigner.cs
- SmtpTransport.cs
- XPathEmptyIterator.cs
- GroupItem.cs
- PolicyLevel.cs
- ClientBuildManagerCallback.cs
- SelectionListDesigner.cs
- Timer.cs
- DataTemplate.cs
- ButtonFieldBase.cs
- ResourcesBuildProvider.cs
- MULTI_QI.cs
- HybridCollection.cs
- MappedMetaModel.cs
- EarlyBoundInfo.cs
- UiaCoreTypesApi.cs
- ItemCheckEvent.cs
- DependencyProperty.cs
- ElementAction.cs
- TypeDelegator.cs
- SqlFunctions.cs
- Permission.cs
- NotConverter.cs
- InternalPermissions.cs
- ProcessHostConfigUtils.cs
- Identity.cs
- CollectionViewSource.cs
- ComAdminInterfaces.cs
- SQLInt32.cs
- CompilationPass2Task.cs
- PenThreadPool.cs
- OracleDateTime.cs
- Single.cs
- COAUTHINFO.cs
- DSASignatureDeformatter.cs
- TdsParserSessionPool.cs
- Bits.cs
- RequestSecurityTokenSerializer.cs
- DataGridColumnEventArgs.cs
- TableCell.cs
- CacheAxisQuery.cs
- HtmlAnchor.cs
- MailDefinition.cs
- VScrollProperties.cs
- AdobeCFFWrapper.cs
- DocumentEventArgs.cs
- CompilationRelaxations.cs
- StickyNoteContentControl.cs
- BrowserTree.cs
- WebPartTransformer.cs
- LocatorManager.cs
- NavigationProgressEventArgs.cs
- RemotingConfiguration.cs
- OleCmdHelper.cs
- WebColorConverter.cs
- StylusOverProperty.cs
- Journal.cs
- BitmapImage.cs
- LogWriteRestartAreaAsyncResult.cs
- AppDomainFactory.cs
- Decorator.cs
- Hash.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CompleteWizardStep.cs
- Container.cs
- TransactionBehavior.cs
- regiisutil.cs
- wgx_sdk_version.cs
- DynamicDataManager.cs
- Point.cs