Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / SourceFilter.cs / 1305376 / 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;
}
}
}
}
// 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
- KeyGesture.cs
- StylusLogic.cs
- ProtocolsConfiguration.cs
- ControlIdConverter.cs
- AssertSection.cs
- DataGridViewRowHeaderCell.cs
- ListViewDeleteEventArgs.cs
- OdbcException.cs
- AccessDataSourceView.cs
- CheckBoxPopupAdapter.cs
- TimeSpanOrInfiniteConverter.cs
- DataGridCaption.cs
- DesignerCommandAdapter.cs
- DrawListViewSubItemEventArgs.cs
- WebServiceClientProxyGenerator.cs
- XPathNodePointer.cs
- OpCellTreeNode.cs
- Baml2006Reader.cs
- WorkflowViewService.cs
- LinqDataSourceContextEventArgs.cs
- SubstitutionList.cs
- Ops.cs
- embossbitmapeffect.cs
- SectionVisual.cs
- ParserOptions.cs
- SqlCacheDependencySection.cs
- VerificationException.cs
- MetaDataInfo.cs
- SafeMILHandle.cs
- GeneralTransform3DTo2D.cs
- DesignerActionList.cs
- Application.cs
- Win32.cs
- CompatibleIComparer.cs
- DataGridViewColumn.cs
- ParserExtension.cs
- DefaultPropertyAttribute.cs
- TargetParameterCountException.cs
- DataGrid.cs
- VarRefManager.cs
- SqlDataSourceFilteringEventArgs.cs
- DataControlPagerLinkButton.cs
- ActiveXSite.cs
- FlagsAttribute.cs
- SettingsBindableAttribute.cs
- PeerResolverElement.cs
- OutputCacheProfile.cs
- EmptyEnumerator.cs
- Listbox.cs
- PropertyInfoSet.cs
- ClientTargetSection.cs
- ObjectConverter.cs
- MergeLocalizationDirectives.cs
- CultureSpecificCharacterBufferRange.cs
- TextEditorTyping.cs
- CodeRegionDirective.cs
- TreeNodeClickEventArgs.cs
- SecureEnvironment.cs
- StdValidatorsAndConverters.cs
- WebHeaderCollection.cs
- TableCell.cs
- TraceEventCache.cs
- CommandLibraryHelper.cs
- BinaryObjectInfo.cs
- RelationshipConverter.cs
- Pen.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- OutputCacheProfile.cs
- DefaultBindingPropertyAttribute.cs
- GenericWebPart.cs
- UnsafeNativeMethods.cs
- WebPartExportVerb.cs
- UrlPath.cs
- GlyphShapingProperties.cs
- RangeValueProviderWrapper.cs
- ShapeTypeface.cs
- DataGridViewImageCell.cs
- ContentControl.cs
- RuleAttributes.cs
- WithParamAction.cs
- HotCommands.cs
- RotateTransform3D.cs
- TCPClient.cs
- ConfigurationValue.cs
- QilStrConcatenator.cs
- PerformanceCounterLib.cs
- KeyValueSerializer.cs
- DelegateBodyWriter.cs
- SqlParameter.cs
- ByteRangeDownloader.cs
- XPathNode.cs
- BinHexEncoder.cs
- MarshalByValueComponent.cs
- datacache.cs
- SyndicationDeserializer.cs
- OptimalBreakSession.cs
- RadioButtonList.cs
- GetReadStreamResult.cs
- XmlReaderSettings.cs
- ReferenceService.cs