Compartilhar via


Método GetExistingObjectByKey

Uses the specified key to retrieve an existing object from 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 MustOverride Function GetExistingObjectByKey ( _
    key As K _
) As T
'Uso
Dim key As K
Dim returnValue As T

returnValue = Me.GetExistingObjectByKey(key)
protected abstract T GetExistingObjectByKey(
    K key
)
protected:
virtual T GetExistingObjectByKey(
    K key
) abstract
abstract GetExistingObjectByKey : 
        key:'K -> 'T 
protected abstract function GetExistingObjectByKey(
    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 or nullNothingnullptrunituma referência nula (Nothing no Visual Basic) if a matching object was not found.