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

‘선언
Function UnregisterCustomCategory ( _
    catAssigned As VSTASKCATEGORY _
) As Integer
‘사용 방법
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
)
abstract UnregisterCustomCategory : 
        catAssigned:VSTASKCATEGORY -> int 
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.

.NET Framework Security

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace