Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Diagnostics / SourceFilter.cs / 1 / SourceFilter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; namespace System.Diagnostics { public class SourceFilter : TraceFilter { private string src; public SourceFilter(string source) { Source = source; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { if (source == null) throw new ArgumentNullException("source"); return String.Equals(src, source); } public String Source { get { return src; } set { if (value == null) throw new ArgumentNullException("source"); src = value; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyProperty.cs
- PartialList.cs
- Row.cs
- DesignerDataTableBase.cs
- ControlBindingsCollection.cs
- Attributes.cs
- ServiceMemoryGates.cs
- CachedTypeface.cs
- CustomAssemblyResolver.cs
- ClientEndpointLoader.cs
- EditorZoneBase.cs
- SweepDirectionValidation.cs
- XmlSchemaInclude.cs
- SqlCommandBuilder.cs
- XmlSchemaAppInfo.cs
- InlineCollection.cs
- DefaultProxySection.cs
- RegexCompilationInfo.cs
- ConstructorNeedsTagAttribute.cs
- QueryOutputWriter.cs
- Stylesheet.cs
- DiscoveryProxy.cs
- RegexMatchCollection.cs
- CheckBoxStandardAdapter.cs
- EpmSourcePathSegment.cs
- SqlProviderServices.cs
- SynchronizedInputHelper.cs
- XmlAtomicValue.cs
- ManipulationCompletedEventArgs.cs
- BitStream.cs
- HttpWrapper.cs
- NamespaceMapping.cs
- Select.cs
- CodeIdentifiers.cs
- SystemException.cs
- XhtmlStyleClass.cs
- SchemaImporter.cs
- GregorianCalendarHelper.cs
- ColorComboBox.cs
- LinqDataSourceDeleteEventArgs.cs
- TagMapCollection.cs
- Section.cs
- DocumentSequenceHighlightLayer.cs
- SmiEventSink.cs
- UIElement3D.cs
- DataBoundLiteralControl.cs
- DataGridTableStyleMappingNameEditor.cs
- BindingOperations.cs
- WmlObjectListAdapter.cs
- PasswordBox.cs
- SecurityAlgorithmSuiteConverter.cs
- KnownBoxes.cs
- ThreadInterruptedException.cs
- HtmlContainerControl.cs
- SafeHandle.cs
- TabControlEvent.cs
- UrlMappingCollection.cs
- InlineCollection.cs
- XamlToRtfWriter.cs
- ADMembershipProvider.cs
- coordinatorscratchpad.cs
- CompiledXpathExpr.cs
- SoapException.cs
- OrderedDictionary.cs
- TransformerInfo.cs
- Calendar.cs
- _Rfc2616CacheValidators.cs
- ListControlDesigner.cs
- TransportBindingElement.cs
- ReadOnlyDataSourceView.cs
- ParentUndoUnit.cs
- TimeoutValidationAttribute.cs
- WbemProvider.cs
- PowerModeChangedEventArgs.cs
- ETagAttribute.cs
- NameSpaceEvent.cs
- AuthenticationModulesSection.cs
- DrawingGroup.cs
- _NTAuthentication.cs
- TiffBitmapEncoder.cs
- XmlnsDictionary.cs
- EncoderExceptionFallback.cs
- DescendantQuery.cs
- DataGridViewIntLinkedList.cs
- PerspectiveCamera.cs
- RangeValuePatternIdentifiers.cs
- DateTimeOffsetConverter.cs
- GeneratedContractType.cs
- GenericEnumerator.cs
- StorageTypeMapping.cs
- smtpconnection.cs
- OrderedDictionaryStateHelper.cs
- XmlConverter.cs
- DataGridSortCommandEventArgs.cs
- Metadata.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ConsoleTraceListener.cs
- initElementDictionary.cs
- ProcessThread.cs
- FrameworkRichTextComposition.cs