Condividi tramite


Metodo GetObjectByKey

Uses the specified key to retrieve an object from the collection. If a matching object is not found in the collection, the object is created in 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
Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance
'Utilizzo
Dim instance As ISfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance

returnValue = instance.GetObjectByKey(key)
SfcInstance GetObjectByKey(
    SfcKey key
)
SfcInstance^ GetObjectByKey(
    SfcKey^ key
)
abstract GetObjectByKey : 
        key:SfcKey -> SfcInstance 
function GetObjectByKey(
    key : SfcKey
) : SfcInstance

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
An SfcInstance object that represents the object from the collection.