由資料產生引擎在執行期間呼叫,以讓衍生類別針對來源項目與目標項目之間的差異執行其他驗證。
命名空間: 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
參數
- sourceElement
型別:Microsoft.Data.Schema.SchemaModel.IModelElement
IModelElement 物件,表示來源項目。
- targetDifference
型別:Microsoft.Data.Schema.SchemaModel.ModelComparisonChangeDefinition
ModelComparisonChangeDefinition 物件。
- elementErrors
型別:System.Collections.Generic.List<DataSchemaError>%
(輸出) DataSchemaError 物件的 List<T>,這些物件包含執行期間發生的錯誤。
傳回值
型別:System.Boolean
在衍生類別中覆寫時,如果差異有效則傳回 true,否則傳回 false。預設的實作一定會傳回 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。