DefaultGeneratorDesigner.OnInputChangeValidation Method
This method is called when the value of a designer input property changes. It is called to validate the designer. It is called before the OnInputValueChanged event is raised.
Namespace: Microsoft.Data.Schema.Tools.DataGenerator
Assembly: Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)
Syntax
'Declaration
Public Overridable Sub OnInputChangeValidation ( _
sender As Object, _
eventArgs As InputChangingEventArgs _
)
public virtual void OnInputChangeValidation(
Object sender,
InputChangingEventArgs eventArgs
)
public:
virtual void OnInputChangeValidation(
Object^ sender,
InputChangingEventArgs^ eventArgs
)
abstract OnInputChangeValidation :
sender:Object *
eventArgs:InputChangingEventArgs -> unit
override OnInputChangeValidation :
sender:Object *
eventArgs:InputChangingEventArgs -> unit
public function OnInputChangeValidation(
sender : Object,
eventArgs : InputChangingEventArgs
)
Parameters
- sender
Type: System.Object
The object that initiates the event.
- eventArgs
Type: Microsoft.Data.Schema.Tools.DataGenerator.InputChangingEventArgs
An InputChangingEventArgs object.
Implements
IDesigner.OnInputChangeValidation(Object, InputChangingEventArgs)
Remarks
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The OnInputChangeValidation method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique to handle the event in a derived class.
Notes to Inheritors
When overriding OnInputChangeValidation in a derived class, make sure that you call the OnInputChangeValidation method of the base class so that registered delegates receive the event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DefaultGeneratorDesigner Class
Microsoft.Data.Schema.Tools.DataGenerator Namespace
OnInputChangeValidation