public Task<int?> RunCommandAsync()
Public Function RunCommandAsync As Task(Of Integer?)
Dim instance As CommandManager
Dim returnValue As Task(Of Integer?)
returnValue = instance.RunCommandAsync()
public:
Task<Nullable<int>>^ RunCommandAsync()
This function creates the command by invoking the CreateCommand method. If the command implements the IAsyncCancelableCommand interface, it sets the IAsyncCancelableCommandCancellationToken property. If the command implements the IAsyncCommand interface, it invokes the IAsyncCommandRunAsync method; otherwise, it invokes the ICommandRun method on the command.
Commands that don't meet the criteria of the CommandOptionsCommandFilter predicate are not included.
If the CommandOptionsParentCommand property is , only commands without a ParentCommandAttribute attribute are included. If it is not , only commands where the type specified using the ParentCommandAttribute attribute matches the value of the property are included.
The automatic version command is included if the CommandOptionsAutoVersionCommand property is and the command name matches the name of the automatic version command, and not any other command name. The CommandOptionsCommandFilter and CommandOptionsParentCommand property also affect whether the version command is included.