Share via


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
int UnregisterCustomCategory(
    VSTASKCATEGORY catAssigned
)
int UnregisterCustomCategory(
    [InAttribute] VSTASKCATEGORY catAssigned
)
abstract UnregisterCustomCategory : 
        catAssigned:VSTASKCATEGORY -> int
function UnregisterCustomCategory(
    catAssigned : VSTASKCATEGORY
) : int

Parameters

Return Value

Type: 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.

.NET Framework Security

See Also

Reference

IVsTaskList Interface

Microsoft.VisualStudio.Shell.Interop Namespace