SfcCollection<T, K, ParentT>.GetObjectByKey Method

Uses the specified key to retrieve an existing object from the collection. If a matching object is not found, the object is created, and added to 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 MustOverride Function GetObjectByKey ( _
    key As K _
) As T
'Usage
Dim key As K
Dim returnValue As T

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

Parameters

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

Return Value

Type: T
An object from the collection.

See Also

Reference

SfcCollection<T, K, ParentT> Class

Microsoft.SqlServer.Management.Sdk.Sfc Namespace