Xceed Toolkit Plus for WPF v4.6 Documentation
Validate Method (StatFunction)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.Data.Stats Namespace > StatFunction Class : Validate Method
Validates the statistical function to ensure that it is able to calculate its result.
Syntax
'Declaration
 
Protected Friend Overridable Sub Validate() 
'Usage
 
Dim instance As StatFunction
 
instance.Validate()
protected internal virtual void Validate()
Remarks

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.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StatFunction Class
StatFunction Members