DataRuleEngine.ExecuteRules 方法 (DataSchemaModel, IEnumerable<DataRuleSetting>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>, Func<Boolean>)
命名空間: 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), _
executeCanceled As Func(Of Boolean) _
) As IList(Of DataRuleProblem)
public static IList<DataRuleProblem> ExecuteRules(
DataSchemaModel dataSchemaModel,
IEnumerable<DataRuleSetting> ruleSettings,
out IEnumerable<DataSchemaError> errors,
Predicate<DataRuleProblemSuppressionContext> suppressProblem,
Func<bool> executeCanceled
)
public:
static IList<DataRuleProblem^>^ ExecuteRules(
DataSchemaModel^ dataSchemaModel,
IEnumerable<DataRuleSetting^>^ ruleSettings,
[OutAttribute] IEnumerable<DataSchemaError^>^% errors,
Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem,
Func<bool>^ executeCanceled
)
static member ExecuteRules :
dataSchemaModel:DataSchemaModel *
ruleSettings:IEnumerable<DataRuleSetting> *
errors:IEnumerable<DataSchemaError> byref *
suppressProblem:Predicate<DataRuleProblemSuppressionContext> *
executeCanceled:Func<bool> -> IList<DataRuleProblem>
public static function ExecuteRules(
dataSchemaModel : DataSchemaModel,
ruleSettings : IEnumerable<DataRuleSetting>,
errors : IEnumerable<DataSchemaError>,
suppressProblem : Predicate<DataRuleProblemSuppressionContext>,
executeCanceled : Func<boolean>
) : IList<DataRuleProblem>
參數
- dataSchemaModel
型別:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
- ruleSettings
型別:System.Collections.Generic.IEnumerable<DataRuleSetting>
- suppressProblem
型別:System.Predicate<DataRuleProblemSuppressionContext>
- executeCanceled
型別:System.Func<Boolean>
傳回值
型別:System.Collections.Generic.IList<DataRuleProblem>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。