TaskItem.Description Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
}