Share via


SfcCollection<T, K, ParentT>.CreateAndInitializeChildObject Method

Creates a child object and adds it 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 Function CreateAndInitializeChildObject ( _
    key As K _
) As T
'Usage
Dim key As K
Dim returnValue As T

returnValue = Me.CreateAndInitializeChildObject(key)
protected T CreateAndInitializeChildObject(
    K key
)
protected:
T CreateAndInitializeChildObject(
    K key
)
member CreateAndInitializeChildObject : 
        key:'K -> 'T 
protected function CreateAndInitializeChildObject(
    key : K
) : T

Parameters

  • key
    Type: K
    The key for the child object.

Return Value

Type: T
The child object.