Skip to main content Skip to complementary content

CloneGenericObjectAsync Method

Overloads

CloneGenericObjectAsync(String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

CloneGenericObjectAsync(AsyncHandle, String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

CloneGenericObjectAsync<T>(AsyncHandle, Func<Response, T>, String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

CloneGenericObjectAsync(String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

Declaration

      [QixName("CloneObject")]
Task<string> CloneGenericObjectAsync([QixName("qId")] string id)
    

Parameters

Type Name Description
System.String id

Identifier of the object to clone. The identifier must be a root object.

Returns

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

Remarks

It is not possible to clone a session object.

CloneGenericObjectAsync(AsyncHandle, String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

Declaration

      [QixName("CloneObject")]
Task<string> CloneGenericObjectAsync(AsyncHandle asyncHandle, [QixName("qId")] string id)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String id

Identifier of the object to clone. The identifier must be a root object.

Returns

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

Remarks

It is not possible to clone a session object.

CloneGenericObjectAsync<T>(AsyncHandle, Func<Response, T>, String)

Clones root level objects, such as sheets and stories. The CloneObject method works for both app objects and child objects.

When you clone an object that contains children, the children are cloned as well.

If you for example want to clone a visualization, you must provide the qID of the root object, in this case the sheet since CloneObject clones root level objects.

Declaration

      [QixName("CloneObject")]
Task<T> CloneGenericObjectAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qId")] string id)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String id

Identifier of the object to clone. The identifier must be a root object.

Returns

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

Type Parameters

Name Description
T

Remarks

It is not possible to clone a session object.

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!