次の方法で共有


TaskItem.Description プロパティ

定義

コンストラクターで設定されている説明を TaskList() 取得します。

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

プロパティ値

説明です。

次の例では、説明を含むすべての MessageTaskItem タスクのタスク 項目の一覧を検索します。 次に、トレース リスナーに説明文字列を書き込みます。

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

}

適用対象