SfcCollection<T, K, ParentT>.ISfcCollection.GetObjectByKey Método
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
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
Private Function GetObjectByKey ( _
key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
'Uso
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 admite el uso de implementaciones de interfaces explícitas, pero no la declaración de otras nuevas.
Parámetros
- key
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
The key that identifies the object to get.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
The object from the collection.
Implementa
ISfcCollection.GetObjectByKey(SfcKey)