Share via


IVsTaskList.UnregisterCustomCategory(VSTASKCATEGORY) Method

Definition

Unregisters the specified custom category from the task list.

public:
 int UnregisterCustomCategory(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY catAssigned);
public:
 int UnregisterCustomCategory(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY catAssigned);
int UnregisterCustomCategory(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY catAssigned);
public int UnregisterCustomCategory (Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY catAssigned);
abstract member UnregisterCustomCategory : Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY -> int
Public Function UnregisterCustomCategory (catAssigned As VSTASKCATEGORY) As Integer

Parameters

catAssigned
VSTASKCATEGORY

[in] The VSTASKCATEGORY enumeration assigned to the custom category from the RegisterCustomCategory(Guid, UInt32, VSTASKCATEGORY[]) method.

Returns

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.

Applies to