Freigeben über


IVsTaskItem2.Category Method (array<VSTASKCATEGORY )

Returns the category of a task item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function Category ( _
    <OutAttribute> pCat As VSTASKCATEGORY() _
) As Integer
'Usage
Dim instance As IVsTaskItem2
Dim pCat As VSTASKCATEGORY()
Dim returnValue As Integer

returnValue = instance.Category(pCat)
int Category(
    VSTASKCATEGORY[] pCat
)
int Category(
    [OutAttribute] array<VSTASKCATEGORY>^ pCat
)
abstract Category : 
        pCat:VSTASKCATEGORY[] byref -> int 
function Category(
    pCat : VSTASKCATEGORY[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTaskItem.Category(array<VSTASKCATEGORY[])

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.

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

Category Overload

Microsoft.VisualStudio.Shell.Interop Namespace