Freigeben über


SfcCollection<T, K, ParentT>.ISfcCollection.GetObjectByKey-Methode

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Private Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
'Usage
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 unterstützt die Verwendung expliziter Schnittstellenimplementierungen, aber nicht die Deklaration neuer Schnittstellenimplementierungen.

Parameter

Rückgabewert

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

Implementiert

ISfcCollection.GetObjectByKey(SfcKey)

Siehe auch

Verweis

SfcCollection<T, K, ParentT> Klasse

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace