IVsTaskList::AutoFilter Method (VSTASKCATEGORY)

 

Filters the task list so only the specified category is shown.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int AutoFilter(
	VSTASKCATEGORY cat
)

Parameters

cat
Type: Microsoft.VisualStudio.Shell.Interop::VSTASKCATEGORY

[in] Category to filter on. For a list of values, see VSTASKCATEGORY.

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::AutoFilter(
   [in] VSTASKCATEGORY cat
);

A view in a task list consists of a filter and a sort. Since only one category can be filtered at a time, the only way to display more than one category in a view is to display all of them by using the CAT_ALL enumeration of VSTASKCATEGORY.

To filter custom categories, see the AutoFilter2.

Return to top
Show: