Xceed.Silverlight.Data.v2.0 Assembly > Xceed.Silverlight.Data.Stats Namespace > StatFunction Class : Validate Method |
'Declaration Protected Friend Overridable Sub Validate()
'Usage Dim instance As StatFunction instance.Validate()
protected internal virtual void Validate()
By default, only the ResultPropertyName property is validated to make sure that a value has been provided and that it is unique.
When overriding the Validate method in a derived class, the base implementation must be called. If the validation process fails, an exception should be thrown to indicate that the statistical function cannot calculate its result.
If an exception occurs in the Accumulate, AccumulateChildResult, or GetResult methods, it will be caught by a grid and returned as the result of the statistical function. In some cases, such as when the statistical function's required parameters are being validated in the Validate method, the exception will not be caught since if the validation fails the statistical function is not able to calculate its result.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family