共用方式為


SpecialDirectoriesProxy.AllUsersApplicationData 屬性

定義

取得路徑名稱,該路徑指向所有使用者的 Application Data 目錄。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 property System::String ^ AllUsersApplicationData { System::String ^ get(); };
public string AllUsersApplicationData { get; }
member this.AllUsersApplicationData : string
Public ReadOnly Property AllUsersApplicationData As String

屬性值

所有使用者的 Application Data 目錄路徑。

例外狀況

路徑是空的,通常是因為作業系統不支援目錄。

範例

本範例會顯示 中 MessageBox所有使用者的應用程式資料目錄路徑。

MsgBox(
  My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData)

備註

物件 SpecialDirectories 包含常用目錄的路徑。

適用於

另請參閱