Freigeben über


SmoCollectionBase.GetObjectByIndex-Methode

Extracts a member from the referenced collection using a system-defined, unique identifier.

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

Syntax

'Declaration
Protected Function GetObjectByIndex ( _
    index As Integer _
) As SqlSmoObject
'Usage
Dim index As Integer 
Dim returnValue As SqlSmoObject 

returnValue = Me.GetObjectByIndex(index)
protected SqlSmoObject GetObjectByIndex(
    int index
)
protected:
SqlSmoObject^ GetObjectByIndex(
    int index
)
member GetObjectByIndex : 
        index:int -> SqlSmoObject
protected function GetObjectByIndex(
    index : int
) : SqlSmoObject

Parameter

  • index
    Typ: System.Int32
    An Int32 value that specifies the index position of the object in the collection.

Rückgabewert

Typ: Microsoft.SqlServer.Management.Smo.SqlSmoObject
An Object system object that has the specified index value.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiele

Verwenden von Auflistungen

Siehe auch

Verweis

SmoCollectionBase Klasse

Microsoft.SqlServer.Management.Smo-Namespace