Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BaseResourcesBuildProvider.cs
- OdbcPermission.cs
- SByteConverter.cs
- GregorianCalendarHelper.cs
- FunctionCommandText.cs
- ImportCatalogPart.cs
- FormView.cs
- EmptyEnumerator.cs
- DependencyObjectValidator.cs
- MaskedTextProvider.cs
- WinInet.cs
- InputReport.cs
- Int32Converter.cs
- x509utils.cs
- _Rfc2616CacheValidators.cs
- Int32.cs
- Operator.cs
- DataServiceContext.cs
- PageParserFilter.cs
- ExpressionParser.cs
- PaperSource.cs
- ProgressBarRenderer.cs
- ProgressBarBrushConverter.cs
- ClickablePoint.cs
- LOSFormatter.cs
- Sql8ConformanceChecker.cs
- BaseTemplateBuildProvider.cs
- DesignerImageAdapter.cs
- OperandQuery.cs
- Size.cs
- HTMLTextWriter.cs
- LinearGradientBrush.cs
- ColumnHeaderCollectionEditor.cs
- _ConnectionGroup.cs
- indexingfiltermarshaler.cs
- EntityDataSourceStatementEditor.cs
- WebServiceResponseDesigner.cs
- HtmlTableRow.cs
- CodeRegionDirective.cs
- UrlAuthorizationModule.cs
- DataGridRowHeaderAutomationPeer.cs
- SwitchLevelAttribute.cs
- WriteFileContext.cs
- TabControlEvent.cs
- DispatcherExceptionFilterEventArgs.cs
- RelationshipConverter.cs
- Rijndael.cs
- RtType.cs
- HwndHostAutomationPeer.cs
- StylusSystemGestureEventArgs.cs
- MaterialGroup.cs
- HTTPRemotingHandler.cs
- MarkedHighlightComponent.cs
- Html32TextWriter.cs
- TriggerAction.cs
- ChildrenQuery.cs
- DbConnectionPoolGroup.cs
- ColorMap.cs
- TypeValidationEventArgs.cs
- TreeNodeStyle.cs
- XmlCharCheckingWriter.cs
- BaseParser.cs
- PropertyReferenceSerializer.cs
- SqlMethodAttribute.cs
- SqlDependencyListener.cs
- BevelBitmapEffect.cs
- DynamicILGenerator.cs
- PagerStyle.cs
- CellIdBoolean.cs
- LedgerEntryCollection.cs
- PenThreadPool.cs
- AppDomainManager.cs
- EncryptedPackageFilter.cs
- SqlUdtInfo.cs
- MailBnfHelper.cs
- GridViewCellAutomationPeer.cs
- CompensationHandlingFilter.cs
- CombinedHttpChannel.cs
- _ScatterGatherBuffers.cs
- DataGridViewAccessibleObject.cs
- SerializationObjectManager.cs
- PrtTicket_Public.cs
- IgnorePropertiesAttribute.cs
- SemanticResolver.cs
- entitydatasourceentitysetnameconverter.cs
- StaticExtensionConverter.cs
- InvalidOleVariantTypeException.cs
- ObjectResult.cs
- ErrorView.xaml.cs
- AuthorizationRule.cs
- CodeNamespaceImportCollection.cs
- WebConvert.cs
- DataGridCaption.cs
- EncoderNLS.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- XmlCharacterData.cs
- SynchronizedInputAdaptor.cs
- TextContainer.cs
- InputLanguage.cs
- MissingManifestResourceException.cs