ICommandChannelAsync.DoAsync(String, Object, CancellationToken) Method

Asynchronously accepts and executes a specified command with arguments.

Namespace: DevExpress.Xpo.Helpers

Assembly: DevExpress.Data.v20.2.dll

Declaration

Task<object> DoAsync(
    string command,
    object args,
    CancellationToken cancellationToken = default(CancellationToken)
)
Function DoAsync(
    command As String,
    args As Object,
    cancellationToken As CancellationToken = Nothing
) As Task(Of Object)

Parameters

Name Type Description
command String

A command to be accepted and executed.

args Object

Arguments the command accepts.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken

null

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task<Object>

A Task that returns an object. This object is the operation result.

See Also