JumpTask.Description Propriedade

Definição

Obtém ou define o texto exibido na dica de ferramenta para a tarefa na Lista de Atalhos.

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

Valor da propriedade

O texto exibido na dica de ferramenta para a tarefa. O padrão é null.

Exemplos

O exemplo a seguir mostra como declarar um JumpTask na marcação. O JumpTask abre um arquivo de texto chamado readme.txt no aplicativo bloco de notas.

<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"/>

O exemplo a seguir mostra como configurar um JumpTask no código. O JumpTask abre o aplicativo Calculadora.

// 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";

Aplica-se a