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
- sourceElement
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
The source element
- targetDifference
Type: Microsoft.Data.Schema.SchemaModel.ModelComparisonResult.ChangeDefinition
The target difference
- elementErrors
Type: System.Collections.Generic.List<DataSchemaError>%
List of element errors
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
- 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.