Compartilhar via


Método GetObjectByKey

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. 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
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 de retorno

Tipo: T
An object from the collection.