Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MorphHelper.cs
- Debug.cs
- SqlInfoMessageEvent.cs
- ObjectMemberMapping.cs
- DataSourceConverter.cs
- SerializationEventsCache.cs
- WindowsSysHeader.cs
- SQLDoubleStorage.cs
- DesignerCommandAdapter.cs
- CharConverter.cs
- securitymgrsite.cs
- DBPropSet.cs
- XamlWriter.cs
- BrowserTree.cs
- ResourceCategoryAttribute.cs
- OrderedEnumerableRowCollection.cs
- Int32CollectionConverter.cs
- WorkflowMarkupSerializationManager.cs
- BitmapPalettes.cs
- returneventsaver.cs
- UIElement3D.cs
- CallContext.cs
- ArgIterator.cs
- DSASignatureFormatter.cs
- ObjectSet.cs
- XmlSchemaDatatype.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- StylusLogic.cs
- _SecureChannel.cs
- DoWorkEventArgs.cs
- BasicCellRelation.cs
- InstalledFontCollection.cs
- ProofTokenCryptoHandle.cs
- PrintingPermission.cs
- XmlRawWriter.cs
- WebPartMenuStyle.cs
- DocumentAutomationPeer.cs
- NavigationPropertyAccessor.cs
- BuildManager.cs
- HttpWriter.cs
- BoolExpr.cs
- HotCommands.cs
- DesignerWidgets.cs
- PersistNameAttribute.cs
- DynamicPropertyHolder.cs
- Int64Converter.cs
- TextTreeRootTextBlock.cs
- JsonDeserializer.cs
- ImmutablePropertyDescriptorGridEntry.cs
- HttpServerVarsCollection.cs
- Resources.Designer.cs
- LinearQuaternionKeyFrame.cs
- HttpConfigurationContext.cs
- SqlProviderManifest.cs
- BamlRecordWriter.cs
- DataGridCellsPanel.cs
- TableRowCollection.cs
- RangeValidator.cs
- SiteOfOriginContainer.cs
- BindingGraph.cs
- ContentWrapperAttribute.cs
- StrongNameIdentityPermission.cs
- DataGridViewRowPrePaintEventArgs.cs
- Interlocked.cs
- DetailsViewModeEventArgs.cs
- invalidudtexception.cs
- AspNetPartialTrustHelpers.cs
- MultiBindingExpression.cs
- BlurBitmapEffect.cs
- SHA1.cs
- ValueOfAction.cs
- CapabilitiesPattern.cs
- PolyLineSegment.cs
- MatrixCamera.cs
- WorkflowApplicationEventArgs.cs
- InstanceCompleteException.cs
- DataBinder.cs
- DescendantOverDescendantQuery.cs
- EmissiveMaterial.cs
- XpsS0ValidatingLoader.cs
- TextElementEnumerator.cs
- EnumType.cs
- TextOptions.cs
- ContentDesigner.cs
- ThreadNeutralSemaphore.cs
- ToolStripSeparator.cs
- FormattedText.cs
- ObjectManager.cs
- PublishLicense.cs
- ContractAdapter.cs
- TextBoxLine.cs
- ControlValuePropertyAttribute.cs
- RemoteWebConfigurationHostServer.cs
- XmlDictionary.cs
- CompositeFontFamily.cs
- ToolStripInSituService.cs
- ContentWrapperAttribute.cs
- ResourceDictionary.cs
- AnnotationComponentManager.cs
- WpfPayload.cs