TaskDialog.AddCommandLink
Description:
Adds a CommandLink associated to the given id, displaying the indicating main and supporting content.
Adds a CommandLink associated to the given id, displaying the indicating main and supporting content.
Remarks:
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.
Overloads (2):
AddCommandLink(TaskDialogCommandLinkId,String,String)
public void AddCommandLink(
TaskDialogCommandLinkId id,
string mainContent,
string supportingContent
)
-
idThe id of the CommandLink. This corresponds to the value returned by Show() when the link is chosen by the user.
-
StringmainContentThe main content of the CommandLink.
-
StringsupportingContentThe main content of the CommandLink.
-
Thrown when mainContent isnullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when mainContent is an empty string.
-
Thrown when the mainContent contains newline characters.