Partager via


IVsTaskItem.Category(VSTASKCATEGORY[]) Method

Definition

Returns the category of a task item.

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

Parameters

pCat
VSTASKCATEGORY[]

[out, retval] Category of the task item. For a list of values, see VSTASKCATEGORY.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem::Category(  
   [out, retval] VSTASKCATEGORY *pCat  
);  

The category is not shown to the user, but is used for filtering and sorting when switching between different views of the task list.

Applies to