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
- ExponentialEase.cs
- CommandCollectionEditor.cs
- BasicCellRelation.cs
- Image.cs
- UIPropertyMetadata.cs
- EntityClientCacheEntry.cs
- StateItem.cs
- XmlDictionaryReader.cs
- x509utils.cs
- DataGridViewRowCancelEventArgs.cs
- SAPICategories.cs
- RegexWriter.cs
- WebPartVerb.cs
- Update.cs
- ConcurrentBag.cs
- ExtendLockCommand.cs
- WmpBitmapEncoder.cs
- MarginCollapsingState.cs
- Atom10FeedFormatter.cs
- SessionPageStatePersister.cs
- CodeStatement.cs
- ToolStripComboBox.cs
- UInt64Converter.cs
- BatchStream.cs
- CultureTableRecord.cs
- MessagePartSpecification.cs
- QuaternionAnimationUsingKeyFrames.cs
- ListBoxItemWrapperAutomationPeer.cs
- InternalConfigEventArgs.cs
- ScaleTransform.cs
- HttpChannelBindingToken.cs
- NumberFunctions.cs
- WebReferencesBuildProvider.cs
- OdbcUtils.cs
- NetCodeGroup.cs
- GridViewSelectEventArgs.cs
- RelatedView.cs
- XhtmlBasicLinkAdapter.cs
- DecimalFormatter.cs
- ContentValidator.cs
- FrugalList.cs
- SettingsSection.cs
- SimpleTypeResolver.cs
- HelpProvider.cs
- PenLineJoinValidation.cs
- MembershipValidatePasswordEventArgs.cs
- SpeakProgressEventArgs.cs
- HTMLTextWriter.cs
- GetPageNumberCompletedEventArgs.cs
- EventBindingService.cs
- HostExecutionContextManager.cs
- AuthenticationModuleElementCollection.cs
- FormParameter.cs
- StoryFragments.cs
- Vector3DConverter.cs
- HostingEnvironmentSection.cs
- VerificationException.cs
- DSASignatureDeformatter.cs
- BrowserTree.cs
- ReadOnlyHierarchicalDataSource.cs
- Misc.cs
- TextLine.cs
- mansign.cs
- RegistrationProxy.cs
- QilFactory.cs
- ServiceSecurityAuditElement.cs
- HttpRawResponse.cs
- XmlAttributeOverrides.cs
- PageRequestManager.cs
- Socket.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CodeCompileUnit.cs
- SessionPageStatePersister.cs
- HttpHandlerAction.cs
- KnownTypes.cs
- PresentationSource.cs
- DBCommandBuilder.cs
- ConsumerConnectionPoint.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FixedSchema.cs
- PropertyValueUIItem.cs
- WS2007HttpBindingElement.cs
- AstNode.cs
- AQNBuilder.cs
- ExpressionEditor.cs
- Utils.cs
- BackgroundWorker.cs
- InternalCache.cs
- XmlTextReaderImpl.cs
- DataGridViewTextBoxCell.cs
- COM2ExtendedTypeConverter.cs
- QueryCreatedEventArgs.cs
- AlternationConverter.cs
- LazyTextWriterCreator.cs
- UInt16.cs
- DataListCommandEventArgs.cs
- DetailsView.cs
- TemplateAction.cs
- TemplateBuilder.cs
- ImagingCache.cs