AnswersValidAttribute..::..IsValid Method

Returns true if ... is valid.

Namespace:  MichaelBrandonMorris.KingsportMillSafetyTraining.Models.Validation
Assembly:  MichaelBrandonMorris.KingsportMillSafetyTraining (in MichaelBrandonMorris.KingsportMillSafetyTraining.dll)

Syntax


public bool IsValid(
	Object value,
	Object container
)
Public Function IsValid ( _
	value As Object, _
	container As Object _
) As Boolean
public:
bool^ IsValid(
	Object^ value, 
	Object^ container
)

Parameters

value
Type: Object
The value.
container
Type: Object
The container.

Return Value

true if the specified value is valid; otherwise, false.

Exceptions


ExceptionCondition
ArgumentException Attribute must be applied within a slide view model. or Attribute must be applied to a list of answers.
ArgumentNullExceptionvalue