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
- DeleteIndexBinder.cs
- MouseWheelEventArgs.cs
- ServicesUtilities.cs
- OdbcDataAdapter.cs
- TextEditorDragDrop.cs
- SchemaImporterExtensionsSection.cs
- DecoderExceptionFallback.cs
- EnumMember.cs
- NamedPipeWorkerProcess.cs
- VirtualizedCellInfoCollection.cs
- SafeFindHandle.cs
- XamlTemplateSerializer.cs
- DoubleLink.cs
- dbdatarecord.cs
- BufferBuilder.cs
- SID.cs
- ExtensibleClassFactory.cs
- XpsFilter.cs
- ApplicationServicesHostFactory.cs
- _DisconnectOverlappedAsyncResult.cs
- StylusButtonEventArgs.cs
- LoadedOrUnloadedOperation.cs
- Stopwatch.cs
- xdrvalidator.cs
- EntityDataSourceValidationException.cs
- Point3DAnimation.cs
- GroupJoinQueryOperator.cs
- RtfFormatStack.cs
- IPipelineRuntime.cs
- Win32SafeHandles.cs
- ResourceReader.cs
- SQLSingleStorage.cs
- TPLETWProvider.cs
- ListItemConverter.cs
- cookie.cs
- HierarchicalDataBoundControl.cs
- GridViewRow.cs
- OutputCacheProfileCollection.cs
- ModelItemDictionaryImpl.cs
- XmlSchemaDocumentation.cs
- SmtpTransport.cs
- SafeNativeMethods.cs
- DSACryptoServiceProvider.cs
- DoubleStorage.cs
- __ConsoleStream.cs
- ConsumerConnectionPointCollection.cs
- TreeIterators.cs
- BindingList.cs
- DataGridViewSortCompareEventArgs.cs
- FacetChecker.cs
- PointConverter.cs
- TabControlCancelEvent.cs
- BookmarkScope.cs
- RadioButtonFlatAdapter.cs
- SplitContainer.cs
- RegexCode.cs
- EntityKeyElement.cs
- Permission.cs
- AsmxEndpointPickerExtension.cs
- DataBoundControlAdapter.cs
- Control.cs
- TextEffectCollection.cs
- LateBoundBitmapDecoder.cs
- RefType.cs
- StringSource.cs
- XmlNodeList.cs
- XmlWriterSettings.cs
- HierarchicalDataBoundControlAdapter.cs
- CheckBoxRenderer.cs
- TextDecorationCollection.cs
- OleDbDataAdapter.cs
- MobileSysDescriptionAttribute.cs
- SessionState.cs
- EntityDataSourceChangedEventArgs.cs
- BaseDataList.cs
- Tuple.cs
- SqlDelegatedTransaction.cs
- ToolboxDataAttribute.cs
- FileLogRecordStream.cs
- DodSequenceMerge.cs
- ContentType.cs
- TextEditorContextMenu.cs
- EventLogReader.cs
- XmlSchemaSet.cs
- WmlTextViewAdapter.cs
- XmlMapping.cs
- XmlHierarchicalEnumerable.cs
- JoinElimination.cs
- WebPartConnectionsConnectVerb.cs
- BitmapImage.cs
- WindowsListViewItem.cs
- TextElementEditingBehaviorAttribute.cs
- SerializationFieldInfo.cs
- NotCondition.cs
- TabPage.cs
- DataBindingCollectionConverter.cs
- PenThreadWorker.cs
- EmissiveMaterial.cs
- PersonalizationAdministration.cs
- SqlDependencyListener.cs