IVsTaskItem.Category(VSTASKCATEGORY[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回任务项的类别。
public:
int Category(cli::array <Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY> ^ pCat);
public:
int Category(Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY> ^ pCat);
int Category(std::Array <Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY> const & pCat);
public int Category (Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY[] pCat);
abstract member Category : Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY[] -> int
Public Function Category (pCat As VSTASKCATEGORY()) As Integer
参数
- pCat
- VSTASKCATEGORY[]
[out,retval]任务项的类别。 有关值的列表,请参阅 VSTASKCATEGORY 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsTaskItem::Category(
[out, retval] VSTASKCATEGORY *pCat
);
该类别不向用户显示,但用于在任务列表的不同视图之间切换时进行筛选和排序。