Compartir a través de


GetExistingObjectByKey Método

Uses the specified key to retrieve an existing object from 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 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 devuelto

Tipo: T
An object from the collection or nullNothingnullptrunites una referencia NULL (Nothing en Visual Basic). if a matching object was not found.