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
- ExplicitDiscriminatorMap.cs
- AxWrapperGen.cs
- XpsSerializationException.cs
- DataGridViewButtonCell.cs
- XmlSchemaInferenceException.cs
- BooleanExpr.cs
- Rectangle.cs
- BaseAutoFormat.cs
- ActivitySurrogate.cs
- XmlSchemaObjectTable.cs
- WebScriptMetadataInstanceContextProvider.cs
- ResourceDescriptionAttribute.cs
- QilGenerator.cs
- ResourceWriter.cs
- WebPartConnection.cs
- WebPartTracker.cs
- Descriptor.cs
- HotSpot.cs
- PageOutputQuality.cs
- SelectedGridItemChangedEvent.cs
- Gdiplus.cs
- VideoDrawing.cs
- PropertyDescriptorCollection.cs
- RoamingStoreFileUtility.cs
- ProcessModelInfo.cs
- AssertHelper.cs
- DBSqlParserTableCollection.cs
- TabControlAutomationPeer.cs
- InteropAutomationProvider.cs
- DataGridViewTextBoxCell.cs
- StringHelper.cs
- CriticalFinalizerObject.cs
- CompilerParameters.cs
- SchemaHelper.cs
- HttpRuntimeSection.cs
- ListBoxItem.cs
- PartialArray.cs
- PagerSettings.cs
- SymbolMethod.cs
- UmAlQuraCalendar.cs
- ConnectionStringSettingsCollection.cs
- DoubleIndependentAnimationStorage.cs
- ReadOnlyMetadataCollection.cs
- Rotation3DAnimationBase.cs
- OdbcConnectionHandle.cs
- ConfigurationValidatorAttribute.cs
- XamlToRtfWriter.cs
- XmlAnyElementAttributes.cs
- HandlerFactoryWrapper.cs
- CodeDomConfigurationHandler.cs
- RuntimeConfig.cs
- BehaviorEditorPart.cs
- Helpers.cs
- Focus.cs
- OpenTypeLayoutCache.cs
- DocComment.cs
- ThousandthOfEmRealDoubles.cs
- FilterEventArgs.cs
- ResourceWriter.cs
- ClrPerspective.cs
- TemplateControlCodeDomTreeGenerator.cs
- ContractCodeDomInfo.cs
- ImportContext.cs
- OrderPreservingMergeHelper.cs
- documentsequencetextview.cs
- BaseDataBoundControl.cs
- FixUpCollection.cs
- DiagnosticsConfigurationHandler.cs
- IfAction.cs
- CallSiteHelpers.cs
- PrimitiveXmlSerializers.cs
- ByteStack.cs
- TabControlCancelEvent.cs
- TextInfo.cs
- CompositeCollection.cs
- SynchronizedInputProviderWrapper.cs
- IisTraceWebEventProvider.cs
- NetworkInformationException.cs
- DataTrigger.cs
- LicenseManager.cs
- LogSwitch.cs
- TypeInitializationException.cs
- MobileRedirect.cs
- ConfigDefinitionUpdates.cs
- StyleCollection.cs
- OleDbPermission.cs
- CancelEventArgs.cs
- AnnotationResourceCollection.cs
- DataGridHyperlinkColumn.cs
- MsmqDecodeHelper.cs
- SafeMemoryMappedViewHandle.cs
- ExtensionSurface.cs
- DecoderExceptionFallback.cs
- ParseHttpDate.cs
- SqlDataSourceRefreshSchemaForm.cs
- Overlapped.cs
- RedistVersionInfo.cs
- ReliableRequestSessionChannel.cs
- TextProviderWrapper.cs
- WindowsTitleBar.cs