SfcCollection<T, K, ParentT>.GetObjectByKey Método
Uses the specified key to retrieve an existing object from the collection. If a matching object is not found, the object is created, and added to 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
Protected MustOverride Function GetObjectByKey ( _
key As K _
) As T
'Uso
Dim key As K
Dim returnValue As T
returnValue = Me.GetObjectByKey(key)
protected abstract T GetObjectByKey(
K key
)
protected:
virtual T GetObjectByKey(
K key
) abstract
abstract GetObjectByKey :
key:'K -> 'T
protected abstract function GetObjectByKey(
key : K
) : T
Parámetros
- key
Tipo: K
The key that identifies the object to get.
Valor devuelto
Tipo: T
An object from the collection.