IVsTaskList.AutoFilter(VSTASKCATEGORY) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters the task list so only the specified category is shown.
public:
int AutoFilter(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY cat);
public:
int AutoFilter(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY cat);
int AutoFilter(Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY cat);
public int AutoFilter (Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY cat);
abstract member AutoFilter : Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY -> int
Public Function AutoFilter (cat As VSTASKCATEGORY) As Integer
Parameters
- cat
- VSTASKCATEGORY
[in] Category to filter on. For a list of values, see VSTASKCATEGORY.
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::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.