Description
This method sets the prompt message to the first part of the messageAndKeywords string and sets the display keywords to the latter part of the same string. The display keywords portion of messageAndKeywords must be surrounded by an opening square bracket ("[") at the beginning and a closing square bracket ("]") at the end. The keywords in this list must be delimited by a forward slash character ("/").
Each display keyword specified in messageAndKeywords must also be matched by a keyword in the same position in the globalKeywords string. Keywords in globalKeywords must be delimited by a single space.
If the bracketed keyword list is missing or empty, a System.ArgumentException is thrown. If the number of global keywords does not match the number of display keywords, a System.ArgumentException is thrown.
Visual Basic
Public Function SetMessageAndKeywords( messageAndKeywords As string, globalKeywords As string ) As void
C#
public void SetMessageAndKeywords( string messageAndKeywords, string globalKeywords );
Parameters
| Parameters | Description |
|---|---|
| string messageAndKeywords | Input message and keywords |
| string globalKeywords | Input global keywords |