AssemblyInfo.DirectoryPath 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取应用程序的存储目录。
public:
 property System::String ^ DirectoryPath { System::String ^ get(); };
	public string DirectoryPath { get; }
	member this.DirectoryPath : string
	Public ReadOnly Property DirectoryPath As String
	属性值
一个 String 值,包含应用程序的存储目录。
示例
此示例使用 My.Application.Info.DirectoryPath 属性显示存储应用程序的目录路径。
MsgBox("Application directory path: " & My.Application.Info.DirectoryPath)
	注解
属性 My.Application.Info.DirectoryPath 获取存储应用程序的目录。
可用性(按项目类型)
| 项目类型 | 可用 | 
|---|---|
| Windows 窗体应用程序 | 是 | 
| 类库 | 是 | 
| 控制台应用程序 | 是 | 
| Windows 窗体控件库 | 是 | 
| Web 控件库 | 否 | 
| Windows 服务 | 是 | 
| 网站 | 否 |