IVsTaskItem2.OnFilterTask Method (Int32)
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
'Déclaration
Function OnFilterTask ( _
fVisible As Integer _
) As Integer
'Utilisation
Dim instance As IVsTaskItem2
Dim fVisible As Integer
Dim returnValue As Integer
returnValue = instance.OnFilterTask(fVisible)
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.
Implements
IVsTaskItem.OnFilterTask(Int32)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsTaskItem2::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
- 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.