Skip to main content Skip to complementary content

CreateChildAsync Method

Overloads

CreateChildAsync<T>(GenericObjectProperties, GenericObjectProperties)

Creation of child generic object

Declaration

      Task<T> CreateChildAsync<T>([QixName("qProp")] GenericObjectProperties prop, [QixName("qPropForThis")] GenericObjectProperties propForThis = null)
    where T : GenericObject
    

Parameters

Type Name Description
GenericObjectProperties prop

Properties of the child to create

GenericObjectProperties propForThis

Properties of the parent object (this)

Returns

Type Description
System.Threading.Tasks.Task<T>

A task with the created object as type T

Type Parameters

Name Description
T

Type of the child to create

CreateChildAsync<T>(AsyncHandle, Func<Response, T>, GenericObjectProperties, GenericObjectProperties)

Creation of child generic object

Declaration

      Task<T> CreateChildAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qProp")] GenericObjectProperties prop, [QixName("qPropForThis")] GenericObjectProperties propForThis = null)
    where T : GenericObject
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

GenericObjectProperties prop

Properties of the child to create

GenericObjectProperties propForThis

Properties of the parent object (this)

Returns

Type Description
System.Threading.Tasks.Task<T>

A task with the created object as type T

Type Parameters

Name Description
T

Type of the child to create

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!