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
)
function UnregisterCustomCategory(
catAssigned : VSTASKCATEGORY
) : int
Parameters
catAssigned
Type: Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY[in] The VSTASKCATEGORY enumeration assigned to the custom category from the RegisterCustomCategory method.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.