ValidateAnswer Method
Checks to make sure that the specified answer is compatable with the corresponding prompt style.
Syntax
public static System.bool ValidateAnswer(
PromptStyle style,
PromptAnswer answer
)Public Shared Function ValidateAnswer( _
ByVal style As PromptStyle, _
ByVal answer As PromptAnswer _
) As System.BooleanParameters
| Name | Description |
|---|---|
| style | The prompt style to check the answer against. |
| answer | The prompt answer to check. |
Return Value
Whether or not answer is compatible with style.
Remarks
Not all PromptAnswer's are valid with all PromptStyle's. The most obvious reason for an answer to be invalid is that it is not one of the options available as specified by the prompt's style.