次の方法で共有


TaskItem.Category プロパティ

定義

カテゴリを取得します。

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

プロパティ値

カテゴリです。

次の例では、 パフォーマンス カテゴリ内のすべてのタスクについて、タスク アイテムの一覧を検索します。

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

}

適用対象