Application.ExecutablePath プロパティ

定義

実行可能ファイル名を含む、アプリケーションを起動した実行可能ファイルのパスを取得します。

public:
 static property System::String ^ ExecutablePath { System::String ^ get(); };
public static string ExecutablePath { get; }
static member ExecutablePath : string
Public Shared ReadOnly Property ExecutablePath As String

プロパティ値

アプリケーションを起動した実行可能ファイルのパスと実行可能ファイル名。

このパスは、Windows フォーム アプリケーションが ClickOnce を使用して配置されるかどうかによって異なります。 ClickOnce アプリケーションは、C:\Documents and Settings\username ディレクトリのユーザーごとのアプリケーション キャッシュに格納されます。 詳細については、「 ClickOnce アプリケーションでのローカル データとリモート データへのアクセス」を参照してください。

適用対象