Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / Diagnostics / SeverityFilter.cs / 1 / SeverityFilter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Diagnostics { public class EventTypeFilter : TraceFilter { private SourceLevels level; public EventTypeFilter(SourceLevels level) { this.level = level; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { return ((int) eventType & (int) level) != 0; } public SourceLevels EventType { get { return level; } set { level = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Diagnostics { public class EventTypeFilter : TraceFilter { private SourceLevels level; public EventTypeFilter(SourceLevels level) { this.level = level; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { return ((int) eventType & (int) level) != 0; } public SourceLevels EventType { get { return level; } set { level = value; } } } } // 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
- TextDecoration.cs
- ColumnBinding.cs
- codemethodreferenceexpression.cs
- UriPrefixTable.cs
- HtmlElementCollection.cs
- EventLogPermissionAttribute.cs
- VirtualizingPanel.cs
- HelpKeywordAttribute.cs
- DelegateSerializationHolder.cs
- SelectionRangeConverter.cs
- NullRuntimeConfig.cs
- Attributes.cs
- MediaElement.cs
- Page.cs
- PenThreadPool.cs
- DetailsViewCommandEventArgs.cs
- Pair.cs
- X509Utils.cs
- CallbackValidator.cs
- DbgUtil.cs
- SystemWebExtensionsSectionGroup.cs
- SqlServer2KCompatibilityAnnotation.cs
- TablePatternIdentifiers.cs
- IEnumerable.cs
- Pen.cs
- ProxyGenerationError.cs
- CopyCodeAction.cs
- ContentElement.cs
- WhitespaceRule.cs
- OleDbError.cs
- ClientTarget.cs
- PartManifestEntry.cs
- Types.cs
- TagMapCollection.cs
- PropertyTabAttribute.cs
- MemberDomainMap.cs
- ObjectCacheHost.cs
- ObjectSecurity.cs
- loginstatus.cs
- MtomMessageEncoder.cs
- ReachVisualSerializerAsync.cs
- AuthenticationSchemesHelper.cs
- SQLBoolean.cs
- NamespaceInfo.cs
- StringCollection.cs
- DesignerActionVerbItem.cs
- FileAuthorizationModule.cs
- IERequestCache.cs
- PageThemeParser.cs
- XmlSerializableReader.cs
- BulletedListEventArgs.cs
- OracleDateTime.cs
- _ServiceNameStore.cs
- XmlAutoDetectWriter.cs
- AsymmetricAlgorithm.cs
- AuthenticationServiceManager.cs
- OperationFormatStyle.cs
- CompressStream.cs
- CodeCastExpression.cs
- PropertyAccessVisitor.cs
- UnknownWrapper.cs
- IPEndPoint.cs
- StorageSetMapping.cs
- COM2PropertyBuilderUITypeEditor.cs
- WebPartsSection.cs
- UserControlCodeDomTreeGenerator.cs
- SqlDataReader.cs
- BoundingRectTracker.cs
- BinaryObjectInfo.cs
- ClientRuntime.cs
- COM2PropertyPageUITypeConverter.cs
- WebBrowserUriTypeConverter.cs
- Point3DConverter.cs
- SuppressIldasmAttribute.cs
- PbrsForward.cs
- TrustManager.cs
- SubqueryRules.cs
- EncryptedXml.cs
- Label.cs
- CharacterMetrics.cs
- Application.cs
- UnsafeNativeMethods.cs
- ObjectIDGenerator.cs
- ListViewHitTestInfo.cs
- VBCodeProvider.cs
- UITypeEditor.cs
- HtmlLink.cs
- TextDocumentView.cs
- CanonicalXml.cs
- AnchoredBlock.cs
- OperandQuery.cs
- AutomationElementIdentifiers.cs
- UserControl.cs
- CLSCompliantAttribute.cs
- AppLevelCompilationSectionCache.cs
- mediaeventargs.cs
- LocatorPart.cs
- precedingquery.cs
- WebPartTracker.cs
- DbConnectionPoolCounters.cs