Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.Data.Stats Namespace / StatFunction Class / Validate Method


In This Topic
    Validate Method (StatFunction)
    In This Topic
    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.

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also