DataSink.ValidateDifference 方法

由数据生成引擎调用,以允许派生类对源和目标元素之间的差异执行其他验证。

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
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

参数

返回值

类型:System.Boolean
在派生类中重写时,如果差异有效,则返回 true;否则返回 false。默认实现始终返回 true。

.NET Framework 安全性

请参见

参考

DataSink 类

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

IModelElement

DataSchemaError

ModelComparisonChangeDefinition