JumpTask.ApplicationPath プロパティ

定義

アプリケーションへのパスを取得または設定します。

public:
 property System::String ^ ApplicationPath { System::String ^ get(); void set(System::String ^ value); };
public string ApplicationPath { get; set; }
member this.ApplicationPath : string with get, set
Public Property ApplicationPath As String

プロパティ値

String

アプリケーションへのパス。 既定値は、null です。

次の例は、in マークアップを宣言する方法を JumpTask 示しています。 JumpTaskメモ帳 アプリケーションで名前が付けられたreadme.txtテキスト ファイルが開きます。

<JumpTask Title="Read Me" 
          Description="Open readme.txt in Notepad." 
          ApplicationPath="C:\Windows\notepad.exe"
          IconResourcePath="C:\Windows\System32\imageres.dll"
          IconResourceIndex="14"
          WorkingDirectory="C:\Users\Public\Documents"
          Arguments="readme.txt"/>

次の例は、in コードを構成する方法を JumpTask 示しています。 JumpTask電卓アプリケーションが開きます。

// Configure a new JumpTask.
JumpTask jumpTask1 = new JumpTask();
// Get the path to Calculator and set the JumpTask properties.
jumpTask1.ApplicationPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.SystemX86), "calc.exe");
jumpTask1.IconResourcePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.SystemX86), "calc.exe");
jumpTask1.Title = "Calculator";
jumpTask1.Description = "Open Calculator.";
jumpTask1.CustomCategory = "User Added Tasks";

注釈

プロパティが ApplicationPath 指定されていない場合、現在実行中のプロセスのパスが暗黙的に指定されます。 アプリケーションには、それ以外の実行可能ファイルのタスクを含めることができます。

適用対象