Share via


SpecialDirectoriesProxy.Programs 属性

定义

获取指向 Programs 目录的路径名称。

此 API 支持产品基础结构,不能在代码中直接使用。

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

属性值

指向 Programs 目录的路径。

例外

路径为空,通常是因为操作系统不支持该目录。

示例

此示例显示 中 MessageBox“程序”目录的路径。

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

注解

对象 SpecialDirectories 包含常见引用目录的路径。 “程序”目录包含用户的程序组。

适用于

另请参阅