Поделиться через


Метод SmoCollectionBase.GetItemById (Int32, String)

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Protected Function GetItemById ( _
    id As Integer, _
    idPropName As String _
) As SqlSmoObject
'Применение
Dim id As Integer 
Dim idPropName As String 
Dim returnValue As SqlSmoObject 

returnValue = Me.GetItemById(id, idPropName)
protected SqlSmoObject GetItemById(
    int id,
    string idPropName
)
protected:
SqlSmoObject^ GetItemById(
    int id, 
    String^ idPropName
)
member GetItemById : 
        id:int * 
        idPropName:string -> SqlSmoObject
protected function GetItemById(
    id : int, 
    idPropName : String
) : SqlSmoObject

Параметры

  • id
    Тип: System.Int32
    An Int32 value that uniquely identifies the object that is a member of the referenced collection.

Возвращаемое значение

Тип: Microsoft.SqlServer.Management.Smo.SqlSmoObject
An Object system object that has the specified ID value.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Примеры

Использование коллекций

См. также

Справочник

SmoCollectionBase Класс

Перегрузка GetItemById

Пространство имен Microsoft.SqlServer.Management.Smo