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);
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for