Skip to main content Skip to complementary content

CreateChildAsync Method

Overloads

CreateChildAsync<T>(GenericObjectProperties, GenericObjectProperties)

Async creation of child generic object

Declaration

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

Parameters

Type Name Description
GenericObjectProperties prop

Properties for the child to create

GenericObjectProperties propForThis

Properties for the parent object (this)

Returns

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

A task with the created object as result

Type Parameters

Name Description
T

Type of the child to create

Implements

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

Async creation of child generic object

Declaration

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

Parameters

Type Name Description
AsyncHandle asyncHandle

A string handle allowing the user to access request status

System.Func<Response, T> onResult

Response handler that is used to change the Response object into an instance of T

GenericObjectProperties prop

Properties for the child to create

GenericObjectProperties propForThis

Properties for the parent object (this)

Returns

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

A task with the created object as result

Type Parameters

Name Description
T

Type of the child to create

Implements

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!