Udostępnij za pośrednictwem


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

'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

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

See Also

Reference

IVsTaskList Interface

Microsoft.VisualStudio.Shell.Interop Namespace