ISfcCollection.GetObjectByKey 메서드

Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다.

네임스페이스:  Microsoft.SqlServer.Management.Sdk.Sfc
어셈블리:  Microsoft.SqlServer.Management.Sdk.Sfc(Microsoft.SqlServer.Management.Sdk.Sfc.dll)

구문

‘선언
Private Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
‘사용 방법
Dim instance As SfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance

returnValue = CType(instance, ISfcCollection).GetObjectByKey(key)
SfcInstance ISfcCollection.GetObjectByKey(
    SfcKey key
)
private:
virtual SfcInstance^ GetObjectByKey(
    SfcKey^ key
) sealed = ISfcCollection::GetObjectByKey
private abstract GetObjectByKey : 
        key:SfcKey -> SfcInstance 
private override GetObjectByKey : 
        key:SfcKey -> SfcInstance 
JScript는 명시적 인터페이스 구현의 사용을 지원하지만 새로운 명시적 인터페이스 구현의 선언은 지원하지 않습니다.

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
The object from the collection.

구현

ISfcCollection. . :: . .GetObjectByKey(SfcKey)