DataSink.ValidateDifference Method

Validates a difference between a source and target element.

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

Syntax

'Declaration
Protected Overridable Function ValidateDifference ( _
    sourceElement As IModelElement, _
    targetDifference As ModelComparisonResult..::..ChangeDefinition, _
    <OutAttribute> ByRef elementErrors As List(Of DataSchemaError) _
) As Boolean
'Usage
Dim sourceElement As IModelElement
Dim targetDifference As ModelComparisonResult..::..ChangeDefinition
Dim elementErrors As List(Of DataSchemaError)
Dim returnValue As Boolean

returnValue = Me.ValidateDifference(sourceElement, _
    targetDifference, elementErrors)
protected virtual bool ValidateDifference(
    IModelElement sourceElement,
    ModelComparisonResult..::..ChangeDefinition targetDifference,
    out List<DataSchemaError> elementErrors
)
protected:
virtual bool ValidateDifference(
    IModelElement^ sourceElement, 
    ModelComparisonResult..::..ChangeDefinition^ targetDifference, 
    [OutAttribute] List<DataSchemaError^>^% elementErrors
)
protected function ValidateDifference(
    sourceElement : IModelElement, 
    targetDifference : ModelComparisonResult..::..ChangeDefinition, 
    elementErrors : List<DataSchemaError>
) : boolean
abstract ValidateDifference : 
        sourceElement:IModelElement * 
        targetDifference:ModelComparisonResult..::..ChangeDefinition * 
        elementErrors:List<DataSchemaError> -> bool 
override ValidateDifference : 
        sourceElement:IModelElement * 
        targetDifference:ModelComparisonResult..::..ChangeDefinition * 
        elementErrors:List<DataSchemaError> -> bool 

Parameters

Return Value

Type: System.Boolean

Remarks

Can be overridden by the sink to validate a difference between a source and target element. This is in addition to the validation performed to verify that the generator configuration for the column is valid against the target column.

.NET Framework Security

See Also

Reference

DataSink Class

DataSink Members

Microsoft.Data.Schema.DataGenerator Namespace