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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Private Function OnFilterTask ( _
f As Integer _
) As Integer Implements IVsTaskItem.OnFilterTask
int IVsTaskItem.OnFilterTask(
int f
)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.