Share via


DataSink.ValidateDifference Method

Called by the data generation engine to allow derived classes to perform additional validation for the differences between the source and target elements.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Protected Overridable Function ValidateDifference ( _
    sourceElement As IModelElement, _
    targetDifference As ModelComparisonChangeDefinition, _
    <OutAttribute> ByRef elementErrors As List(Of DataSchemaError) _
) As Boolean
protected virtual bool ValidateDifference(
    IModelElement sourceElement,
    ModelComparisonChangeDefinition targetDifference,
    out List<DataSchemaError> elementErrors
)
protected:
virtual bool ValidateDifference(
    IModelElement^ sourceElement, 
    ModelComparisonChangeDefinition^ targetDifference, 
    [OutAttribute] List<DataSchemaError^>^% elementErrors
)
abstract ValidateDifference : 
        sourceElement:IModelElement * 
        targetDifference:ModelComparisonChangeDefinition * 
        elementErrors:List<DataSchemaError> byref -> bool 
override ValidateDifference : 
        sourceElement:IModelElement * 
        targetDifference:ModelComparisonChangeDefinition * 
        elementErrors:List<DataSchemaError> byref -> bool 
protected function ValidateDifference(
    sourceElement : IModelElement, 
    targetDifference : ModelComparisonChangeDefinition, 
    elementErrors : List<DataSchemaError>
) : boolean

Parameters

Return Value

Type: System.Boolean
When overridden in a derived class, returns true if the differences are valid; otherwise, false. The default implementation always returns true.

.NET Framework Security

See Also

Reference

DataSink Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

IModelElement

DataSchemaError

ModelComparisonChangeDefinition