共用方式為


DataRuleEngine.ExecuteRules 方法 (DataSchemaModel, IEnumerable<DataRuleSetting>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>)

命名空間:  Microsoft.Data.Schema.StaticCodeAnalysis
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Shared Function ExecuteRules ( _
    dataSchemaModel As DataSchemaModel, _
    ruleSettings As IEnumerable(Of DataRuleSetting), _
    <OutAttribute> ByRef errors As IEnumerable(Of DataSchemaError), _
    suppressProblem As Predicate(Of DataRuleProblemSuppressionContext) _
) As IList(Of DataRuleProblem)
public static IList<DataRuleProblem> ExecuteRules(
    DataSchemaModel dataSchemaModel,
    IEnumerable<DataRuleSetting> ruleSettings,
    out IEnumerable<DataSchemaError> errors,
    Predicate<DataRuleProblemSuppressionContext> suppressProblem
)
public:
static IList<DataRuleProblem^>^ ExecuteRules(
    DataSchemaModel^ dataSchemaModel, 
    IEnumerable<DataRuleSetting^>^ ruleSettings, 
    [OutAttribute] IEnumerable<DataSchemaError^>^% errors, 
    Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem
)
static member ExecuteRules : 
        dataSchemaModel:DataSchemaModel * 
        ruleSettings:IEnumerable<DataRuleSetting> * 
        errors:IEnumerable<DataSchemaError> byref * 
        suppressProblem:Predicate<DataRuleProblemSuppressionContext> -> IList<DataRuleProblem> 
public static function ExecuteRules(
    dataSchemaModel : DataSchemaModel, 
    ruleSettings : IEnumerable<DataRuleSetting>, 
    errors : IEnumerable<DataSchemaError>, 
    suppressProblem : Predicate<DataRuleProblemSuppressionContext>
) : IList<DataRuleProblem>

參數

傳回值

型別:System.Collections.Generic.IList<DataRuleProblem>

.NET Framework 安全性

請參閱

參考

DataRuleEngine 類別

ExecuteRules 多載

Microsoft.Data.Schema.StaticCodeAnalysis 命名空間