Autodesk Vault ProfessionalVault API

ValidateAnswer Method

Autodesk.DataManagement.Client.Framework.Forms.CurrencyPromptDefinition

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.Boolean

Parameters

NameDescription
styleThe prompt style to check the answer against.
answerThe 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.

See Also