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
- UIElementIsland.cs
- ArrangedElementCollection.cs
- SendParametersContent.cs
- WebPartUtil.cs
- PersonalizablePropertyEntry.cs
- _NetRes.cs
- ResXBuildProvider.cs
- WebRequestModuleElement.cs
- XmlCustomFormatter.cs
- WebPartsPersonalizationAuthorization.cs
- TypeDescriptionProviderAttribute.cs
- NativeMethods.cs
- DebugViewWriter.cs
- FirstMatchCodeGroup.cs
- ToolBarTray.cs
- ServiceCredentialsSecurityTokenManager.cs
- UrlMappingsSection.cs
- DESCryptoServiceProvider.cs
- TraceSwitch.cs
- AVElementHelper.cs
- RulePatternOps.cs
- DocumentOrderQuery.cs
- OletxEnlistment.cs
- UnknownBitmapEncoder.cs
- DataServiceQueryException.cs
- XPathExpr.cs
- WebResourceAttribute.cs
- TextServicesHost.cs
- SQLDoubleStorage.cs
- WrappedIUnknown.cs
- WorkflowStateRollbackService.cs
- Variable.cs
- WindowsFormsHostPropertyMap.cs
- ClientSettings.cs
- PropertyDescriptorCollection.cs
- MarkupProperty.cs
- UserNameSecurityToken.cs
- TextTreeNode.cs
- IsolatedStorageFile.cs
- StatusBarDrawItemEvent.cs
- WSFederationHttpSecurityMode.cs
- safesecurityhelperavalon.cs
- BamlLocalizabilityResolver.cs
- GeneralTransform3DTo2DTo3D.cs
- IndentedWriter.cs
- MatrixCamera.cs
- AnnotationResource.cs
- EntityModelBuildProvider.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- XPathNavigator.cs
- Stack.cs
- CommandField.cs
- InvokeWebServiceDesigner.cs
- PassportIdentity.cs
- RouteParameter.cs
- Compensation.cs
- PolicyLevel.cs
- __Filters.cs
- RegexCaptureCollection.cs
- HtmlCalendarAdapter.cs
- Point.cs
- XmlnsDefinitionAttribute.cs
- CommandID.cs
- SecurityPolicySection.cs
- VoiceSynthesis.cs
- Semaphore.cs
- CuspData.cs
- DefaultEventAttribute.cs
- MinimizableAttributeTypeConverter.cs
- BmpBitmapDecoder.cs
- DomNameTable.cs
- SectionUpdates.cs
- TraceHandler.cs
- CodeIndexerExpression.cs
- SqlBooleanizer.cs
- CacheRequest.cs
- PermissionSetTriple.cs
- InputDevice.cs
- RtfToXamlReader.cs
- DispatcherExceptionFilterEventArgs.cs
- TextAdaptor.cs
- ValueTypeFixupInfo.cs
- ParseNumbers.cs
- BufferedGraphics.cs
- EdmEntityTypeAttribute.cs
- RuntimeEnvironment.cs
- Constraint.cs
- MimeMultiPart.cs
- CodeMemberProperty.cs
- InputScope.cs
- PiiTraceSource.cs
- Calendar.cs
- DiscreteKeyFrames.cs
- HWStack.cs
- TypeUsageBuilder.cs
- CalloutQueueItem.cs
- Predicate.cs
- bidPrivateBase.cs
- OracleCommandSet.cs
- ResolveCriteria11.cs