共用方式為


IVsTaskList.AutoFilter2 Method

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

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

Syntax

'Declaration
Function AutoFilter2 ( _
    ByRef guidCustomView As Guid _
) As Integer
int AutoFilter2(
    ref Guid guidCustomView
)
int AutoFilter2(
    Guid% guidCustomView
)
abstract AutoFilter2 : 
        guidCustomView:Guid byref -> int
function AutoFilter2(
    guidCustomView : Guid
) : int

Parameters

  • guidCustomView
    Type: Guid%

    [in] GUID of the view to filter on.

Return Value

Type: 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::AutoFilter2(
   REFGUID guidCustomView
);

IVsTaskList.AutoFilter2 allows you to filter a task list to show only a specific view. The view can either be a built-in view, or a custom view. Custom views are entirely registry based. You must specify the columns of the view and their order, the category of tasks shown in the view, and the default sort order for the view. For more information, see Creating a Custom Task List View.

.NET Framework Security

See Also

Reference

IVsTaskList Interface

Microsoft.VisualStudio.Shell.Interop Namespace