Compartir a través de


IVsTaskItem.OnFilterTask Method

Notifies the task provider that a task item has been filtered in or out of view.

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

Syntax

'Declaración
Function OnFilterTask ( _
    fVisible As Integer _
) As Integer
'Uso
Dim instance As IVsTaskItem
Dim fVisible As Integer
Dim returnValue As Integer

returnValue = instance.OnFilterTask(fVisible)
int OnFilterTask(
    int fVisible
)
int OnFilterTask(
    [InAttribute] int fVisible
)
function OnFilterTask(
    fVisible : int
) : int

Parameters

  • fVisible
    Type: System.Int32

    [in] If true, then the task is visible. If false, then the task has been filtered out of view.

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 IVsTaskItem::OnFilterTask(
   [in]BOOL fVisible
);

This method is called when the view changes and certain tasks have been filtered in or out of view. This can happen, for example, when the user changes the current view of the task list, or by calling the RefreshTasks, AutoFilter, or AutoFilter2 methods of IVsTaskList.

Permissions

See Also

Reference

IVsTaskItem Interface

IVsTaskItem Members

Microsoft.VisualStudio.Shell.Interop Namespace