次の方法で共有


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

'宣言
Function AutoFilter2 ( _
    ByRef guidCustomView As Guid _
) As Integer
'使用
Dim instance As IVsTaskList
Dim guidCustomView As Guid
Dim returnValue As Integer

returnValue = instance.AutoFilter2(guidCustomView)
int AutoFilter2(
    ref Guid guidCustomView
)
int AutoFilter2(
    Guid% guidCustomView
)
function AutoFilter2(
    guidCustomView : Guid
) : int

Parameters

  • guidCustomView
    Type: System.Guid%

    [in] GUID of the view to filter on.

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::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.

Permissions

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace