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 フォーム アプリケーション はい
クラス ライブラリ はい
コンソール アプリケーション はい
Windows フォーム コントロール ライブラリ はい
Web コントロール ライブラリ いいえ
Windows サービス はい
Web サイト いいえ

適用対象

こちらもご覧ください