Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- LicFileLicenseProvider.cs
- HtmlInputReset.cs
- IdnMapping.cs
- TextRangeEditLists.cs
- VectorKeyFrameCollection.cs
- SoundPlayerAction.cs
- HandleCollector.cs
- ConstraintStruct.cs
- HtmlMeta.cs
- SymLanguageType.cs
- SymbolMethod.cs
- XmlSchemaAny.cs
- InvalidDataContractException.cs
- QueryStringParameter.cs
- FormatPage.cs
- MultipleViewProviderWrapper.cs
- SrgsOneOf.cs
- TransformerInfo.cs
- Glyph.cs
- XDRSchema.cs
- DropShadowBitmapEffect.cs
- IncrementalCompileAnalyzer.cs
- MessagePropertyDescription.cs
- DbConnectionPoolGroup.cs
- CertificateManager.cs
- PreApplicationStartMethodAttribute.cs
- QilFactory.cs
- SendKeys.cs
- FileSecurity.cs
- RTLAwareMessageBox.cs
- FontCacheLogic.cs
- RegexGroup.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- VectorCollection.cs
- PriorityBinding.cs
- TextCharacters.cs
- Crypto.cs
- EdmEntityTypeAttribute.cs
- FloaterBaseParagraph.cs
- Schema.cs
- UriWriter.cs
- ComponentEvent.cs
- TextUtf8RawTextWriter.cs
- InputProcessorProfiles.cs
- TransformGroup.cs
- PropertyPath.cs
- Geometry.cs
- SurrogateEncoder.cs
- PropertyInformationCollection.cs
- DesignerTransactionCloseEvent.cs
- InputBuffer.cs
- BindingSource.cs
- Attributes.cs
- AuditLevel.cs
- safesecurityhelperavalon.cs
- Point4DValueSerializer.cs
- DataGridViewLinkCell.cs
- SystemTcpStatistics.cs
- WindowsToolbarItemAsMenuItem.cs
- ScriptManagerProxy.cs
- ExpressionContext.cs
- Composition.cs
- FixedSOMTable.cs
- Decimal.cs
- ImmutableAssemblyCacheEntry.cs
- KeyEvent.cs
- VisemeEventArgs.cs
- ArgIterator.cs
- TextRunCache.cs
- ViewGenResults.cs
- BasicBrowserDialog.cs
- InputScope.cs
- TextSpan.cs
- XsltInput.cs
- webeventbuffer.cs
- NominalTypeEliminator.cs
- StickyNote.cs
- EncoderBestFitFallback.cs
- AxisAngleRotation3D.cs
- RealizationDrawingContextWalker.cs
- PropertyValueChangedEvent.cs
- SpellerError.cs
- FactoryMaker.cs
- Win32Native.cs
- UIAgentAsyncParams.cs
- StorageInfo.cs
- NavigationPropertySingletonExpression.cs
- LingerOption.cs
- XmlCDATASection.cs
- StyleHelper.cs
- TripleDES.cs
- HashHelper.cs
- ControlPropertyNameConverter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TypeResolver.cs
- WizardSideBarListControlItemEventArgs.cs
- util.cs
- XmlSchemaValidator.cs
- GuidConverter.cs
- ScriptManagerProxy.cs