1 //------------------------------------------------------------------------------
2 // <copyright file="SourceFilter.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //------------------------------------------------------------------------------
8 using System.Collections;
10 namespace System.Diagnostics {
11 public class SourceFilter : TraceFilter {
14 public SourceFilter(string source) {
18 public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage,
19 object[] args, object data1, object[] data) {
21 throw new ArgumentNullException("source");
23 return String.Equals(src, source);
26 public String Source {
32 throw new ArgumentNullException("source");