Compartir a través de


GetObjectByKey Método

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. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado:  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxis

'Declaración
Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance
'Uso
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

Parámetros

Valor devuelto

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