Share via


FileLogTraceListener.CustomLocation 屬性

定義

Location 屬性設定為 Custom 時,取得或設定記錄檔目錄。

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

屬性值

String,這是記錄檔目錄的名稱。 這個屬性的預設值是使用者的應用程式資料目錄。

備註

CustomLocation設定屬性時,也會將 Location 屬性設定為 Custom

如果無法解析目錄,屬性 CustomLocation 將會擲回例外狀況。

適用於

另請參閱