Condividi tramite


Metodo 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. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Private Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
'Utilizzo
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 supporta l'utilizzo di implementazioni di interfacce esplicite, ma non la dichiarazione di nuove interfacce.

Parametri

Valore restituito

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

Implementa

ISfcCollection. . :: . .GetObjectByKey(SfcKey)