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
- ArgumentValidation.cs
- CompilerCollection.cs
- BitmapMetadata.cs
- SrgsNameValueTag.cs
- SqlWriter.cs
- ProjectionCamera.cs
- ISCIIEncoding.cs
- BasicExpressionVisitor.cs
- XhtmlBasicPanelAdapter.cs
- CatalogZoneBase.cs
- SqlDependencyUtils.cs
- SystemWebSectionGroup.cs
- BamlStream.cs
- FloatUtil.cs
- WindowsRichEditRange.cs
- WebPartTransformer.cs
- ExpressionDumper.cs
- XmlSchemaSimpleContentExtension.cs
- EntryIndex.cs
- VisualTreeUtils.cs
- SecurityManager.cs
- AtomPub10CategoriesDocumentFormatter.cs
- ScriptMethodAttribute.cs
- CompilerLocalReference.cs
- ConstrainedGroup.cs
- FixedDocumentSequencePaginator.cs
- Line.cs
- DeclarativeConditionsCollection.cs
- Identity.cs
- TypeDelegator.cs
- ServiceNotStartedException.cs
- StrongNameIdentityPermission.cs
- ReaderWriterLockWrapper.cs
- ProcessThread.cs
- SecurityElement.cs
- CodeMemberEvent.cs
- documentsequencetextcontainer.cs
- ConfigsHelper.cs
- Ray3DHitTestResult.cs
- OleDbConnectionInternal.cs
- CheckBoxPopupAdapter.cs
- TextBoxAutoCompleteSourceConverter.cs
- Error.cs
- ExpressionConverter.cs
- StringResourceManager.cs
- Selector.cs
- DataContractSerializerFaultFormatter.cs
- SQLDecimalStorage.cs
- PlanCompilerUtil.cs
- EntityTransaction.cs
- TextTreeUndoUnit.cs
- GPRECT.cs
- FixedSOMFixedBlock.cs
- ADMembershipProvider.cs
- List.cs
- SqlStatistics.cs
- documentsequencetextpointer.cs
- ConfigXmlReader.cs
- CodeChecksumPragma.cs
- OutputCacheSettingsSection.cs
- BCryptNative.cs
- WebBrowserNavigatingEventHandler.cs
- ContentHostHelper.cs
- Compensate.cs
- UserControl.cs
- XmlIterators.cs
- MonthCalendar.cs
- Dictionary.cs
- OpenTypeMethods.cs
- BreakRecordTable.cs
- SchemeSettingElement.cs
- PeerObject.cs
- ExeContext.cs
- ErrorWrapper.cs
- ButtonField.cs
- SecurityUtils.cs
- ConfigurationException.cs
- StatusBarItemAutomationPeer.cs
- FixedHighlight.cs
- NullRuntimeConfig.cs
- mansign.cs
- EmptyStringExpandableObjectConverter.cs
- DesignerActionItem.cs
- Privilege.cs
- HttpProfileGroupBase.cs
- CustomAttribute.cs
- MediaTimeline.cs
- ActivityValidator.cs
- AppDomainManager.cs
- DropDownButton.cs
- HasCopySemanticsAttribute.cs
- DrawItemEvent.cs
- SqlUtil.cs
- ProtocolInformationReader.cs
- RIPEMD160Managed.cs
- DtrList.cs
- IPAddress.cs
- ManualWorkflowSchedulerService.cs
- PolyQuadraticBezierSegment.cs
- GridViewAutoFormat.cs