Partager via


Méthode 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. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance
'Utilisation
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

Paramètres

Valeur de retour

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