IVsTaskItem.OnFilterTask(Int32) Method

Definition

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

public:
 int OnFilterTask(int fVisible);
public:
 int OnFilterTask(int fVisible);
int OnFilterTask(int fVisible);
public int OnFilterTask (int fVisible);
abstract member OnFilterTask : int -> int
Public Function OnFilterTask (fVisible As Integer) As Integer

Parameters

fVisible
Int32

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

Returns

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.

Applies to