Table of Contents

Method GetCommand

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetCommand(string)

Gets permanent ICommand for the specified name.

public virtual ICommand GetCommand(string name)

Parameters

name string

Command name.

Returns

ICommand

Remarks

The result is not changed after multiple calls to 'Register' methods. When new ICommand is registered for the given name, the result of GetCommand(string) obtained previously still can be used to call the newly registered command.