DataRuleEngine.ExecuteRules 方法 (IEnumerable<IModelElement>, IEnumerable<DataRuleSetting>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>)
命名空間: Microsoft.Data.Schema.StaticCodeAnalysis
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Shared Function ExecuteRules ( _
modelElements As IEnumerable(Of IModelElement), _
ruleSettings As IEnumerable(Of DataRuleSetting), _
<OutAttribute> ByRef errors As IEnumerable(Of DataSchemaError), _
suppressProblem As Predicate(Of DataRuleProblemSuppressionContext) _
) As IEnumerable(Of DataRuleProblem)
public static IEnumerable<DataRuleProblem> ExecuteRules(
IEnumerable<IModelElement> modelElements,
IEnumerable<DataRuleSetting> ruleSettings,
out IEnumerable<DataSchemaError> errors,
Predicate<DataRuleProblemSuppressionContext> suppressProblem
)
public:
static IEnumerable<DataRuleProblem^>^ ExecuteRules(
IEnumerable<IModelElement^>^ modelElements,
IEnumerable<DataRuleSetting^>^ ruleSettings,
[OutAttribute] IEnumerable<DataSchemaError^>^% errors,
Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem
)
static member ExecuteRules :
modelElements:IEnumerable<IModelElement> *
ruleSettings:IEnumerable<DataRuleSetting> *
errors:IEnumerable<DataSchemaError> byref *
suppressProblem:Predicate<DataRuleProblemSuppressionContext> -> IEnumerable<DataRuleProblem>
public static function ExecuteRules(
modelElements : IEnumerable<IModelElement>,
ruleSettings : IEnumerable<DataRuleSetting>,
errors : IEnumerable<DataSchemaError>,
suppressProblem : Predicate<DataRuleProblemSuppressionContext>
) : IEnumerable<DataRuleProblem>
參數
- modelElements
型別:System.Collections.Generic.IEnumerable<IModelElement>
- ruleSettings
型別:System.Collections.Generic.IEnumerable<DataRuleSetting>
- suppressProblem
型別:System.Predicate<DataRuleProblemSuppressionContext>
傳回值
型別:System.Collections.Generic.IEnumerable<DataRuleProblem>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。