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 네임스페이스