public void AddCommandLink( TaskDialogCommandLinkId id, string mainContent, string supportingContent )
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when mainContent is null. |
| ArgumentException | Thrown when mainContent is an empty string. |
| ArgumentException | Thrown when the mainContent contains newline characters. |
Parameter mainContent cannot contain newlines.
If the id has already been set to the task dialog, the new CommandLink definition overrides the old one.
CommandLinks will always be shown in the dialog in the order of their ids.