Bagikan melalui


UrnCollection.IndexOf Method

Gets the index of a specified URN from a collection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    urn As Urn _
) As Integer
'Usage
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

Parameters

Return Value

Type: System.Int32
The index of a specified URN.

Implements

IList<T>.IndexOf(T)

Examples

Using Collections

See Also

Reference

UrnCollection Class

Microsoft.SqlServer.Management.Smo Namespace