TaskItem.Description Property

Definition

Gets the description that is set in the TaskList() constructor.

public:
 property System::String ^ Description { System::String ^ get(); };
public string Description { get; }
member this.Description : string
Public ReadOnly Property Description As String

Property Value

The description.

Examples

The following example searches the list of task items for all MessageTaskItem tasks that have a description. The example then writes the description string to the trace listener.

foreach (TaskItem item in items) {
    if ((item is MethodTaskItem) && item.Category == sPerformance)
        Trace.WriteLine(item.Description + " Category: " + item.Category);

}

Applies to