SpecialDirectories.AllUsersApplicationData 属性
定义
获取指向所有用户的 Application Data 目录的路径名称。Gets a path name pointing to the Application Data directory for the all users.
public:
static property System::String ^ AllUsersApplicationData { System::String ^ get(); };
public static string AllUsersApplicationData { get; }
member this.AllUsersApplicationData : string
Public Shared ReadOnly Property AllUsersApplicationData As String
属性值
指向所有用户的 Application Data 目录的路径。The path to the Application Data directory for the all users.
例外
控件访问系统和用户环境变量。Controls access to system and user environment variables. 关联的枚举:Unrestricted。Associated enumeration: Unrestricted.
路径为空,通常是因为操作系统不支持该目录。The path is empty, usually because the operating system does not support the directory.
示例
此示例显示中所有用户的应用程序数据目录的路径 MessageBox 。This example displays the path to the Application Data directory for the all users in a MessageBox.
MsgBox(
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData)
注解
SpecialDirectories对象包含指向经常引用的目录的路径。The SpecialDirectories object contains paths to commonly referenced directories.