Gets the index of the specified task in the collection.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Function IndexOf ( _
task As Task _
) As Integer
'使用
Dim instance As TaskProvider..::.TaskCollection
Dim task As Task
Dim returnValue As Integer
returnValue = instance.IndexOf(task)
public int IndexOf(
Task task
)
public:
int IndexOf(
Task^ task
)
public function IndexOf(
task : Task
) : int
Parameters
task
Type: Microsoft.VisualStudio.Shell.TaskThe task for which to search.
Return Value
Type: System.Int32
The index of the task.
Permissions
- 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.
See Also
Reference
TaskProvider.TaskCollection Class