Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- sourceElement
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
An IModelElement object representing the source element.
- targetDifference
Type: Microsoft.Data.Schema.SchemaModel.ModelComparisonChangeDefinition
A ModelComparisonChangeDefinition object.
- elementErrors
Type: System.Collections.Generic.List<DataSchemaError>%
(Output) A List<T> of DataSchemaError objects containing the errors that occurred during execution.
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
- 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.