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
- SoapObjectInfo.cs
- RegexParser.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- BinaryNode.cs
- XmlSchemaCollection.cs
- CodeNamespaceImport.cs
- AnonymousIdentificationSection.cs
- Evidence.cs
- FilteredAttributeCollection.cs
- DecoderFallbackWithFailureFlag.cs
- TransportDefaults.cs
- EntitySqlQueryBuilder.cs
- SafeBitVector32.cs
- PatternMatcher.cs
- IdentityReference.cs
- DefaultBindingPropertyAttribute.cs
- LinqDataSourceEditData.cs
- DragDrop.cs
- AttributeEmitter.cs
- DynamicDiscoveryDocument.cs
- AccessControlEntry.cs
- ContainerSelectorBehavior.cs
- ScriptControlDescriptor.cs
- ItemsControl.cs
- StylusPointProperties.cs
- OdbcConnectionPoolProviderInfo.cs
- DefaultAssemblyResolver.cs
- CheckPair.cs
- BooleanExpr.cs
- ActivityMarkupSerializationProvider.cs
- HuffModule.cs
- ScriptingScriptResourceHandlerSection.cs
- Point3DIndependentAnimationStorage.cs
- basevalidator.cs
- TableRow.cs
- AutomationIdentifierGuids.cs
- DuplexClientBase.cs
- XmlSchemaAnnotation.cs
- ClassImporter.cs
- EdgeModeValidation.cs
- LayoutEvent.cs
- Operand.cs
- SafeTokenHandle.cs
- OutputCacheProfile.cs
- SystemWebCachingSectionGroup.cs
- StandardToolWindows.cs
- CharKeyFrameCollection.cs
- ping.cs
- ContentType.cs
- FixedSOMTable.cs
- TextWriterTraceListener.cs
- SymbolType.cs
- DesignerSerializationOptionsAttribute.cs
- CatalogPartCollection.cs
- externdll.cs
- EmissiveMaterial.cs
- EntitySetBase.cs
- DataTablePropertyDescriptor.cs
- BindingContext.cs
- MarkedHighlightComponent.cs
- ValidationPropertyAttribute.cs
- SocketAddress.cs
- SchemaAttDef.cs
- PostBackTrigger.cs
- MsiStyleLogWriter.cs
- Literal.cs
- DynamicResourceExtension.cs
- DataGridRow.cs
- MenuCommands.cs
- TreeViewItem.cs
- Underline.cs
- VisualBasicSettingsConverter.cs
- Qualifier.cs
- ByteStorage.cs
- WindowsTooltip.cs
- ScrollPattern.cs
- SymbolType.cs
- ObfuscationAttribute.cs
- Literal.cs
- ImageAnimator.cs
- BuildManager.cs
- DocumentPageViewAutomationPeer.cs
- UshortList2.cs
- ResourceDescriptionAttribute.cs
- OrderedEnumerableRowCollection.cs
- ListDesigner.cs
- PersistChildrenAttribute.cs
- SchemaAttDef.cs
- MappingItemCollection.cs
- MarkupObject.cs
- MouseButton.cs
- HtmlInputPassword.cs
- ToolboxItemImageConverter.cs
- PrtTicket_Editor.cs
- Label.cs
- WriterOutput.cs
- XamlWriter.cs
- ObjectDataSourceSelectingEventArgs.cs
- SettingsPropertyNotFoundException.cs
- OutOfProcStateClientManager.cs