Udostępnij za pośrednictwem


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

'Declaration
Function OnFilterTask ( _
    fVisible As Integer _
) As Integer
int OnFilterTask(
    int fVisible
)
int OnFilterTask(
    [InAttribute] int fVisible
)
abstract OnFilterTask : 
        fVisible:int -> int 
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.

.NET Framework Security

See Also

Reference

IVsTaskItem Interface

Microsoft.VisualStudio.Shell.Interop Namespace