DefaultGeneratorDesigner.OnInputChangeValidation Method

Represents the method that is called when a value in the specified input descriptor is about to change.

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

Syntax

'Declaration
Public Overridable Sub OnInputChangeValidation ( _
    sender As Object, _
    eventArgs As InputChangingEventArgs _
)
'Usage
Dim instance As DefaultGeneratorDesigner
Dim sender As Object
Dim eventArgs As InputChangingEventArgs

instance.OnInputChangeValidation(sender, eventArgs)
public virtual void OnInputChangeValidation (
    Object sender,
    InputChangingEventArgs eventArgs
)
public:
virtual void OnInputChangeValidation (
    Object^ sender, 
    InputChangingEventArgs^ eventArgs
)
public void OnInputChangeValidation (
    Object sender, 
    InputChangingEventArgs eventArgs
)
public function OnInputChangeValidation (
    sender : Object, 
    eventArgs : InputChangingEventArgs
)

Parameters

  • sender
    The source of the event.

Exceptions

Exception type Condition

InputValidationException

PercentageNull is less than 0 or larger than 100.

InputValidationException

PercentageNull is 0, and Nullable is false.

InputValidationException

Seed is negative.

Remarks

The InputChangingEventArgs specify the InputDescriptor to change, the new value, and an array of all the InputDescriptors.

This method performs design-time validation. Override this method to perform custom design-time validation in your custom data generator. ValidateInputsperforms run-time validation.

See Also

Reference

DefaultGeneratorDesigner Class
DefaultGeneratorDesigner Members
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
OnInputValueChanged
Generator
IGenerator
DefaultDistributionDesigner Class
IGeneratorDesigner
IDesigner