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
- DependencyPropertyKind.cs
- DataRowCollection.cs
- DataControlFieldCell.cs
- ListControl.cs
- FileInfo.cs
- SqlDataRecord.cs
- UserPreferenceChangingEventArgs.cs
- UIAgentRequest.cs
- XPathArrayIterator.cs
- CodeArrayIndexerExpression.cs
- GZipStream.cs
- HttpServerVarsCollection.cs
- XmlAutoDetectWriter.cs
- PickBranchDesigner.xaml.cs
- PropertyInfo.cs
- Rect3DValueSerializer.cs
- WebPartConnectionsEventArgs.cs
- NavigationCommands.cs
- TextFindEngine.cs
- StateMachineAction.cs
- TimeSpan.cs
- OdbcReferenceCollection.cs
- Substitution.cs
- PlainXmlWriter.cs
- _ListenerAsyncResult.cs
- GlyphRunDrawing.cs
- Registry.cs
- IncrementalCompileAnalyzer.cs
- HttpHeaderCollection.cs
- MessageBox.cs
- TextAnchor.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- QuadraticEase.cs
- WebPartDisplayModeCancelEventArgs.cs
- MimeBasePart.cs
- XmlTextWriter.cs
- EpmAttributeNameBuilder.cs
- DataServiceConfiguration.cs
- ObjectReferenceStack.cs
- ProfileEventArgs.cs
- connectionpool.cs
- sqlpipe.cs
- SettingsPropertyValueCollection.cs
- BrowserTree.cs
- ExpressionVisitor.cs
- FrameSecurityDescriptor.cs
- DocumentPageHost.cs
- XmlSchemaSimpleTypeList.cs
- ResolveResponseInfo.cs
- ErrorWebPart.cs
- AliasedSlot.cs
- GroupBox.cs
- RtfToXamlLexer.cs
- SmtpSection.cs
- DataColumnMapping.cs
- NotSupportedException.cs
- InternalsVisibleToAttribute.cs
- WebBrowserNavigatingEventHandler.cs
- DrawingDrawingContext.cs
- StorageMappingItemCollection.cs
- UndoUnit.cs
- RichTextBoxDesigner.cs
- __TransparentProxy.cs
- RangeBaseAutomationPeer.cs
- Registration.cs
- WsatStrings.cs
- CookielessHelper.cs
- HttpCapabilitiesEvaluator.cs
- HighlightVisual.cs
- CacheSection.cs
- srgsitem.cs
- HttpConfigurationContext.cs
- HtmlShim.cs
- LinkedList.cs
- SchemaAttDef.cs
- ProfileInfo.cs
- ClockController.cs
- WinEventHandler.cs
- PassportAuthentication.cs
- XmlExpressionDumper.cs
- ParseChildrenAsPropertiesAttribute.cs
- CodeCommentStatement.cs
- PropertyGridEditorPart.cs
- FilterableAttribute.cs
- DataSourceCache.cs
- TextTabProperties.cs
- LinearKeyFrames.cs
- OrCondition.cs
- ImpersonationContext.cs
- XmlSchemaAppInfo.cs
- XamlToRtfParser.cs
- TextEndOfParagraph.cs
- TypeContext.cs
- CSharpCodeProvider.cs
- WindowsStatic.cs
- MediaScriptCommandRoutedEventArgs.cs
- ContextMenuService.cs
- HostingEnvironment.cs
- SmtpNegotiateAuthenticationModule.cs
- IsolatedStoragePermission.cs