AssemblyInfo.DirectoryPath 屬性

定義

取得儲存應用程式的目錄。

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 Forms 應用程式
類別庫
主控台應用程式
Windows Form 控制項程式庫
Web 控制項程式庫
Windows 服務
網站

適用於

另請參閱