Task<int> RunAsync()
Function RunAsync As Task(Of Integer)
Dim instance As IAsyncCommand
Dim returnValue As Task(Of Integer)
returnValue = instance.RunAsync()
Task<int>^ RunAsync()
Typically, your application's Main() method should return the exit code of the command that was executed.
This method will only be invoked if you run commands with the CommandManagerRunCommandAsync method or one of its overloads. Typically, it's recommended to implement the ICommandRun method to invoke this method and wait for it. Use the AsyncCommandBase class for a default implementation that does this.