TaskProvider.TaskCollection.IList.IndexOf Method

Gets the index of the collection at which the specified task exists.

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

Syntax

声明
Private Function IndexOf ( _
    obj As Object _
) As Integer Implements IList.IndexOf
用法
Dim instance As TaskProvider..::..TaskCollection
Dim obj As Object
Dim returnValue As Integer

returnValue = CType(instance, IList).IndexOf(obj)
int IList.IndexOf(
    Object obj
)
private:
virtual int IndexOf(
    Object^ obj
) sealed = IList::IndexOf
private abstract IndexOf : 
        obj:Object -> int 
private override IndexOf : 
        obj:Object -> int 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Int32
The index of the collection at which the task exists.

Implements

IList.IndexOf(Object)

.NET Framework Security

See Also

Reference

TaskProvider.TaskCollection Class

TaskProvider.TaskCollection Members

Microsoft.VisualStudio.Shell Namespace