IVsTaskList.AutoFilter Method
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)
Syntax
'Declaración
Function AutoFilter ( _
cat As VSTASKCATEGORY _
) As Integer
'Uso
Dim instance As IVsTaskList
Dim cat As VSTASKCATEGORY
Dim returnValue As Integer
returnValue = instance.AutoFilter(cat)
int AutoFilter(
VSTASKCATEGORY cat
)
int AutoFilter(
[InAttribute] VSTASKCATEGORY cat
)
function AutoFilter(
cat : VSTASKCATEGORY
) : int
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.
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.
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.