Freigeben über


SfcCollection<T, K, ParentT>.GetExistingObjectByKey-Methode

Uses the specified key to retrieve an existing object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Protected MustOverride Function GetExistingObjectByKey ( _
    key As K _
) As T
'Usage
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

Parameter

  • key
    Typ: K
    The key that identifies the object to get.

Rückgabewert

Typ: T
An object from the collection or nullein NULL-Verweis (Nothing in Visual Basic) if a matching object was not found.

Siehe auch

Verweis

SfcCollection<T, K, ParentT> Klasse

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace