public int? RunCommand(
string? commandName,
ReadOnlyMemory<string> args
)
Public Function RunCommand (
commandName As String,
args As ReadOnlyMemory(Of String)
) As Integer?
Dim instance As CommandManager
Dim commandName As String
Dim args As ReadOnlyMemory(Of String)
Dim returnValue As Integer?
returnValue = instance.RunCommand(commandName,
args)
public:
Nullable<int> RunCommand(
String^ commandName,
ReadOnlyMemory<String^> args
)
This function creates the command by invoking the CreateCommand(String, ReadOnlyMemory<String>) method, and then invokes the ICommand.Run() method on the command.
Commands that don't meet the criteria of the CommandOptions.CommandFilter predicate are not included.
If the CommandOptions.ParentCommand is null, only commands without a ParentCommandAttribute attribute are included. If it is not null, only commands where the type specified using the ParentCommandAttribute attribute matches the value of the property are included.