Condividi tramite


Task.IVsTaskItem.OnFilterTask Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Dichiarazione
Private Function OnFilterTask ( _
    f As Integer _
) As Integer Implements IVsTaskItem.OnFilterTask
'Utilizzo
Dim instance As Task
Dim f As Integer
Dim returnValue As Integer

returnValue = CType(instance, IVsTaskItem).OnFilterTask(f)
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: System.Int32
    If true, the task has become visible, otherwise it has become invisible.

Return Value

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

Task Members

Microsoft.VisualStudio.Shell Namespace