Skip to main content Skip to complementary content

DestroyDraftAsync Method

Overloads

DestroyDraftAsync(String, String)

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

DestroyDraftAsync(AsyncHandle, String, String)

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

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

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

DestroyDraftAsync(String, String)

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

Declaration

      [Obsolete("")]
Task<bool> DestroyDraftAsync([QixName("qId")] string id, [QixName("qSourceId")] string sourceId)
    

Parameters

Type Name Description
System.String id

Identifier of the draft object to remove.

System.String sourceId

Identifier of the source object (the object from which a draft was created).

Returns

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

Remarks

The operation is successful if qSuccess is set to true.

DestroyDraftAsync(AsyncHandle, String, String)

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

Declaration

      [Obsolete("")]
Task<bool> DestroyDraftAsync(AsyncHandle asyncHandle, [QixName("qId")] string id, [QixName("qSourceId")] string sourceId)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String id

Identifier of the draft object to remove.

System.String sourceId

Identifier of the source object (the object from which a draft was created).

Returns

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

Remarks

The operation is successful if qSuccess is set to true.

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

Removes the draft of an object.

The children of the draft object (if any) are removed as well.

This method can be used to cancel the work on the draft of an object. For example, if you had created a draft of a sheet that is published, you might not want anymore to replace the published sheet.

Declaration

      [Obsolete("")]
Task<T> DestroyDraftAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qId")] string id, [QixName("qSourceId")] string sourceId)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String id

Identifier of the draft object to remove.

System.String sourceId

Identifier of the source object (the object from which a draft was created).

Returns

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

Type Parameters

Name Description
T

Remarks

The operation is successful if qSuccess is set to true.

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!