共用方式為


IndexOf 方法

Gets the index of a specified URN from a collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function IndexOf ( _
    urn As Urn _
) As Integer
'用途
Dim instance As UrnCollection
Dim urn As Urn
Dim returnValue As Integer

returnValue = instance.IndexOf(urn)
public int IndexOf(
    Urn urn
)
public:
virtual int IndexOf(
    Urn^ urn
) sealed
abstract IndexOf : 
        urn:Urn -> int 
override IndexOf : 
        urn:Urn -> int 
public final function IndexOf(
    urn : Urn
) : int

傳回值

型別:System. . :: . .Int32
Int32

實作

IList< (Of < ( <'T> ) > ) >. . :: . .IndexOf(T)

範例

使用集合