Partager via


Task.IVsTaskItem.OnFilterTask Method

Raised when a task has been filtered into or out of a view.

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

Syntax

'Declaration
Private Function OnFilterTask ( _
    f As Integer _
) As Integer Implements IVsTaskItem.OnFilterTask
int IVsTaskItem.OnFilterTask(
    int f
)
private:
virtual int OnFilterTask(
    int f
) sealed = IVsTaskItem::OnFilterTask
private abstract OnFilterTask : 
        f:int -> int  
private override OnFilterTask : 
        f:int -> int
JScript does not support explicit interface implementations.

Parameters

  • f
    Type: Int32

    If true, the task has become visible, otherwise it has become invisible.

Return Value

Type: Int32
S_OK .

Implements

IVsTaskItem.OnFilterTask(Int32)

Remarks

By default this method is not implemented.

This method is called when the view changes and certain tasks have been filtered in or out of the 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.

.NET Framework Security

See Also

Reference

Task Class

Microsoft.VisualStudio.Shell Namespace