Share via


SourceFilter.Source 属性

定义

获取或设置跟踪源的名称。

public:
 property System::String ^ Source { System::String ^ get(); void set(System::String ^ value); };
public string Source { get; set; }
member this.Source : string with get, set
Public Property Source As String

属性值

跟踪源的名称。

例外

该值为 null

注解

Source 标识要为其写入跟踪信息的跟踪源。 不会为其他跟踪源写入跟踪信息。 跟踪源的名称是 name 的构造函数 TraceSource中的 参数。

适用于