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. 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 Overrides Function GetObjectByKey ( _
    key As K _
) As T
'Uso
Dim key As K
Dim returnValue As T

returnValue = Me.GetObjectByKey(key)
protected override T GetObjectByKey(
    K key
)
protected:
virtual T GetObjectByKey(
    K key
) override
abstract GetObjectByKey : 
        key:'K -> 'T 
override GetObjectByKey : 
        key:'K -> 'T 
protected override 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.