IAppDestroyDraftAsyncT Method (AsyncHandle, FuncResponse, 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.
Namespace: Qlik.EngineAssembly: Qlik.Engine (in Qlik.Engine.dll) Version: 2.1.0.0+Build:7.origin/release/ms13
Syntax Task<T> DestroyDraftAsync<T>(
AsyncHandle asyncHandle,
Func<Response, T> onResult,
string id,
string sourceId
)
Function DestroyDraftAsync(Of T) (
asyncHandle As AsyncHandle,
onResult As Func(Of Response, T),
id As String,
sourceId As String
) As Task(Of T)
Parameters
- asyncHandle
- Type: Qlik.EngineAsyncHandle
Handle to asynchronous method request - onResult
- Type: SystemFuncResponse, T
Continuation function - id
- Type: SystemString
Identifier of the draft object to remove.
This parameter is mandatory. - sourceId
- Type: SystemString
Identifier of the source object (the object from which a draft was created).
Type Parameters
- T
Return Value
Type:
TaskTSee Also