Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Function AutoFilter ( _
cat As VSTASKCATEGORY _
) As Integer
int AutoFilter(
VSTASKCATEGORY cat
)
int AutoFilter(
[InAttribute] VSTASKCATEGORY cat
)
abstract AutoFilter :
cat:VSTASKCATEGORY -> int
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.
.NET Framework Security
- 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.