Freigeben über


IVsTaskList.UnregisterCustomCategory Method

Unregisters the specified custom category from the task list.

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

Syntax

'Declaration
Function UnregisterCustomCategory ( _
    catAssigned As VSTASKCATEGORY _
) As Integer
'Usage
Dim instance As IVsTaskList
Dim catAssigned As VSTASKCATEGORY
Dim returnValue As Integer

returnValue = instance.UnregisterCustomCategory(catAssigned)
int UnregisterCustomCategory(
    VSTASKCATEGORY catAssigned
)
int UnregisterCustomCategory(
    [InAttribute] VSTASKCATEGORY catAssigned
)
function UnregisterCustomCategory(
    catAssigned : VSTASKCATEGORY
) : int

Parameters

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskList::UnregisterCustomCategory(
   [in] VSTASKCATEGORY catAssigned
);

Unregister your custom categories when you no longer need them so that their sort position is freed in the VSTASKCATEGORY enumeration.

Permissions

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace