IVsTaskList::UnregisterCustomCategory Method (VSTASKCATEGORY)

 

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)

int UnregisterCustomCategory(
	VSTASKCATEGORY catAssigned
)

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.

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.

Return to top
Show: