Método ISfcCollection.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.Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxe
'Declaração
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
- key
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
The key that identifies the object to get.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
An SfcInstance object that represents the object from the collection.