PromptDefinition Constructor
Constructs a new PromptDefinition.
Syntax
public PromptDefinition(
System.string id,
System.string text,
System.string command,
PromptStyle style,
PromptAnswer defaultAnswer,
System.string title,
PromptAnswer escapeAnswer,
PromptInstruction defaultInstruction
)Public Function New( _
ByVal id As System.String, _
ByVal text As System.String, _
ByVal command As System.String, _
ByVal style As PromptStyle, _
ByVal defaultAnswer As PromptAnswer, _
Optional ByVal title As System.String, _
Optional ByVal escapeAnswer As PromptAnswer, _
Optional ByVal defaultInstruction As PromptInstruction _
)Parameters
| Name | Description |
|---|---|
| id | The ID of the prompt. |
| text | The text to display to a user when prompted. |
| command | A string identifying the main command or workflow this prompt will be used in. Used to logically group related prompts when displayed to a user. |
| style | The PromptStyle of this prompt. |
| defaultAnswer | The default answer for this prompt. |
| title | The text to display as the caption of the prompt dialog. If null, defaults to the application name. |
| escapeAnswer | The answer a prompt returns when the user escapes the prompt dialog. If set to "NotSet", uses a default excape answer based on the prompt style. See the EscapeAnswer property for more information. |
| defaultInstruction | The default PromptInstruction to use for this prompt. Defaults to PromptInstruction.PromptAlways. |