Share via


SfcCollatedDictionaryCollection<T, K, ParentT>.GetExistingObjectByKey Method

Uses the specified key to retrieve an existing object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

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

Syntax

'Declaration
Protected Overrides Function GetExistingObjectByKey ( _
    key As K _
) As T
'Usage
Dim key As K
Dim returnValue As T

returnValue = Me.GetExistingObjectByKey(key)
protected override T GetExistingObjectByKey(
    K key
)
protected:
virtual T GetExistingObjectByKey(
    K key
) override
abstract GetExistingObjectByKey : 
        key:'K -> 'T 
override GetExistingObjectByKey : 
        key:'K -> 'T 
protected override function GetExistingObjectByKey(
    key : K
) : T

Parameters

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

Return Value

Type: T
An object from the collection or nulla null reference (Nothing in Visual Basic) if a matching object was not found.

See Also

Reference

SfcCollatedDictionaryCollection<T, K, ParentT> Class

Microsoft.SqlServer.Management.Sdk.Sfc Namespace