Generator.OnValidateInputs Method

Validates that all the required inputs on the data generator have been set.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in microsoft.visualstudio.teamsystem.data.dll)

Syntax

'Declaration
Protected Overridable Sub OnValidateInputs
'Usage

Me.OnValidateInputs
protected virtual void OnValidateInputs ()
protected:
virtual void OnValidateInputs ()
protected void OnValidateInputs ()
protected function OnValidateInputs ()

Remarks

This method validates inputs at run time. If you want to validate inputs at design time, create a custom designer or override an existing designer.

The ValidateInputs method calls this method. You should override OnValidateInputs if you want to override the ValidateInputs functionality.

If the inputs are not valid, you should throw an InputValidationException in this method. You can specify Error, which stops the data generation, or Warning, which does not stop the data generation.

See Also

Reference

Generator Class
Generator Members
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
GeneratorAttribute
GeneratorInit
IGenerator

Concepts

An Overview of Data Generator Extensibility
Specifying Details of Data Generation for a Column

Other Resources

Creating Custom Data Generators