Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventLogQuery.cs / 1305376 / EventLogQuery.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventLogQuery ** ** Purpose: ** This public class allows a user to define events of interest. ** An instance of this class is passed to an EventReader to actually ** obtain the EventRecords. The EventLogQuery can be as ** simple specifying that all events are of interest, or it can contain ** query / xpath expressions that indicate exactly what characteristics ** events should have. ** ============================================================*/ using System; using System.Collections.Generic; using System.Runtime.InteropServices; namespace System.Diagnostics.Eventing.Reader { ////// Allows a user to define events of interest. An instance of this /// class is passed to an EventReader to actually obtain the EventRecords. /// The EventLogQuery can be as simple specifying that all events are of /// interest, or it can contain query / xpath expressions that indicate exactly /// what characteristics events should have. /// public class EventLogQuery { private string query; private string path; private EventLogSession session; private PathType pathType; private bool tolerateErrors = false; private bool reverseDirection = false; public EventLogQuery(string path, PathType pathType) : this(path, pathType, null) { } public EventLogQuery(string path, PathType pathType, string query) { this.session = EventLogSession.GlobalSession; this.path = path; // can be null this.pathType = pathType; if (query == null) { if (path == null) throw new ArgumentNullException("path"); } else { this.query = query; } } public EventLogSession Session { get { return this.session; } set { this.session = value; } } public bool TolerateQueryErrors { get { return this.tolerateErrors; } set { this.tolerateErrors = value; } } public bool ReverseDirection { get { return this.reverseDirection; } set { this.reverseDirection = value; } } internal string Path { get { return this.path; } } internal PathType ThePathType { get { return this.pathType; } } internal string Query { get { return this.query; } } } } // 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
- DispatcherProcessingDisabled.cs
- RightsManagementPermission.cs
- Attribute.cs
- PartManifestEntry.cs
- IndicShape.cs
- XsdDataContractImporter.cs
- DecryptRequest.cs
- FormsAuthenticationCredentials.cs
- CssClassPropertyAttribute.cs
- Double.cs
- ISFClipboardData.cs
- safelinkcollection.cs
- ForceCopyBuildProvider.cs
- RequestCacheManager.cs
- CubicEase.cs
- IPEndPointCollection.cs
- Queue.cs
- TableCellAutomationPeer.cs
- CodeTypeReferenceExpression.cs
- EFDataModelProvider.cs
- AccessedThroughPropertyAttribute.cs
- TreeWalker.cs
- ListenerElementsCollection.cs
- XamlClipboardData.cs
- ExpressionBuilderCollection.cs
- WebPartDescription.cs
- ResourceDescriptionAttribute.cs
- AuthenticationService.cs
- ConnectionAcceptor.cs
- mediaeventargs.cs
- RotateTransform3D.cs
- RadioButtonBaseAdapter.cs
- WebSysDisplayNameAttribute.cs
- DefaultParameterValueAttribute.cs
- StaticFileHandler.cs
- ComboBoxItem.cs
- BinaryFormatterWriter.cs
- UnionCqlBlock.cs
- SmiMetaData.cs
- WindowsPrincipal.cs
- _IPv6Address.cs
- RightsManagementEncryptedStream.cs
- Rss20FeedFormatter.cs
- CreateUserWizardAutoFormat.cs
- Scheduling.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SqlReferenceCollection.cs
- FilterQueryOptionExpression.cs
- DeploymentExceptionMapper.cs
- Int32RectValueSerializer.cs
- PropertyInformation.cs
- _SslSessionsCache.cs
- HyperLinkStyle.cs
- TextCompositionManager.cs
- UnitySerializationHolder.cs
- GetIsBrowserClientRequest.cs
- HttpContextServiceHost.cs
- PropertyRef.cs
- TreeViewBindingsEditor.cs
- TreeIterator.cs
- WebPartDisplayModeCollection.cs
- FontInfo.cs
- SystemInformation.cs
- httpserverutility.cs
- CancellationState.cs
- AnyReturnReader.cs
- Component.cs
- ExtenderControl.cs
- Condition.cs
- messageonlyhwndwrapper.cs
- ConfigurationValue.cs
- unitconverter.cs
- OracleTimeSpan.cs
- ProfileParameter.cs
- Bidi.cs
- SymmetricKey.cs
- ReadWriteSpinLock.cs
- DesignerCalendarAdapter.cs
- Symbol.cs
- HierarchicalDataSourceControl.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SrgsElementList.cs
- MultiplexingFormatMapping.cs
- FlowDocumentView.cs
- objectquery_tresulttype.cs
- xmlglyphRunInfo.cs
- BinHexDecoder.cs
- PropertyChangingEventArgs.cs
- ByteStreamGeometryContext.cs
- AssemblyCollection.cs
- ProtocolElementCollection.cs
- CompareInfo.cs
- updatecommandorderer.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- PathFigureCollectionValueSerializer.cs
- MembershipValidatePasswordEventArgs.cs
- SafeFileHandle.cs
- PostBackOptions.cs
- AssemblyCollection.cs