Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionChange.cs
- CreateUserWizardDesigner.cs
- BitStack.cs
- XPathDocumentIterator.cs
- RightsManagementEncryptedStream.cs
- ControlCachePolicy.cs
- StreamHelper.cs
- SwitchElementsCollection.cs
- EditBehavior.cs
- EmbeddedMailObjectsCollection.cs
- PrintingPermissionAttribute.cs
- DataPagerFieldItem.cs
- TableRowCollection.cs
- ContainerUIElement3D.cs
- JpegBitmapEncoder.cs
- FilterElement.cs
- PackagePartCollection.cs
- IsolatedStorage.cs
- XmlElementAttributes.cs
- ValueType.cs
- EndPoint.cs
- RadioButtonStandardAdapter.cs
- WebExceptionStatus.cs
- FlowDocumentPageViewerAutomationPeer.cs
- CompilerLocalReference.cs
- PriorityQueue.cs
- HtmlSelect.cs
- ReturnValue.cs
- Hashtable.cs
- SkinBuilder.cs
- ConfigurationSchemaErrors.cs
- WriteFileContext.cs
- BamlTreeNode.cs
- KnownTypes.cs
- BlurBitmapEffect.cs
- CodeVariableDeclarationStatement.cs
- AttachedPropertyMethodSelector.cs
- FrameSecurityDescriptor.cs
- InstancePersistence.cs
- ColorMatrix.cs
- InputScopeNameConverter.cs
- RectangleF.cs
- TransactionFormatter.cs
- StorageInfo.cs
- WebUtil.cs
- RIPEMD160.cs
- CodeStatement.cs
- Decorator.cs
- assemblycache.cs
- Quaternion.cs
- NoClickablePointException.cs
- FlowDecision.cs
- _NegotiateClient.cs
- RadioButtonAutomationPeer.cs
- DataGridViewLayoutData.cs
- SiteMapDataSourceView.cs
- Margins.cs
- _Events.cs
- EventLog.cs
- PngBitmapDecoder.cs
- HtmlTable.cs
- DelegateSerializationHolder.cs
- XmlParser.cs
- ByteStreamMessageEncoder.cs
- ReferencedCollectionType.cs
- DataControlButton.cs
- DataGridItem.cs
- XmlSortKey.cs
- InkCanvasInnerCanvas.cs
- DbReferenceCollection.cs
- Thickness.cs
- XsdCachingReader.cs
- SharedUtils.cs
- DeclaredTypeElementCollection.cs
- ColorInterpolationModeValidation.cs
- ComPlusThreadInitializer.cs
- RuntimeHelpers.cs
- MarginsConverter.cs
- DateTimeParse.cs
- AsyncOperationManager.cs
- CompatibleIComparer.cs
- EntityClientCacheEntry.cs
- ToggleButton.cs
- BitVector32.cs
- ColumnClickEvent.cs
- DataSourceHelper.cs
- PaginationProgressEventArgs.cs
- SHA384.cs
- HTTPRemotingHandler.cs
- XPathAncestorIterator.cs
- InternalBase.cs
- ScriptReferenceEventArgs.cs
- ChangesetResponse.cs
- ResourceReferenceKeyNotFoundException.cs
- CancellationTokenRegistration.cs
- basemetadatamappingvisitor.cs
- SortedSet.cs
- HtmlTableCell.cs
- TypeHelper.cs
- UnknownBitmapDecoder.cs