TraceListener.Name 属性

定义

获取或设置此 TraceListener 的名称。Gets or sets a name for this TraceListener.

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

属性值

String

TraceListener 的名称。A name for this TraceListener. 默认值为空字符串("")。The default is an empty string ("").

注解

该名称可用于组织和访问集合中的侦听器 TraceListenerCollectionThe name can be used to organize and access listeners in a TraceListenerCollection collection.

适用于

另请参阅