DataRuleEngine.ExecuteRules Method (IEnumerable<IModelElement>, IEnumerable<DataRule>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>)
Namespace: Microsoft.Data.Schema.StaticCodeAnalysis
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Shared Function ExecuteRules ( _
modelElements As IEnumerable(Of IModelElement), _
rules As IEnumerable(Of DataRule), _
<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<DataRule> rules,
out IEnumerable<DataSchemaError> errors,
Predicate<DataRuleProblemSuppressionContext> suppressProblem
)
public:
static IEnumerable<DataRuleProblem^>^ ExecuteRules(
IEnumerable<IModelElement^>^ modelElements,
IEnumerable<DataRule^>^ rules,
[OutAttribute] IEnumerable<DataSchemaError^>^% errors,
Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem
)
static member ExecuteRules :
modelElements:IEnumerable<IModelElement> *
rules:IEnumerable<DataRule> *
errors:IEnumerable<DataSchemaError> byref *
suppressProblem:Predicate<DataRuleProblemSuppressionContext> -> IEnumerable<DataRuleProblem>
public static function ExecuteRules(
modelElements : IEnumerable<IModelElement>,
rules : IEnumerable<DataRule>,
errors : IEnumerable<DataSchemaError>,
suppressProblem : Predicate<DataRuleProblemSuppressionContext>
) : IEnumerable<DataRuleProblem>
Parameters
- modelElements
Type: System.Collections.Generic.IEnumerable<IModelElement>
- rules
Type: System.Collections.Generic.IEnumerable<DataRule>
- errors
Type: System.Collections.Generic.IEnumerable<DataSchemaError>%
- suppressProblem
Type: System.Predicate<DataRuleProblemSuppressionContext>
Return Value
Type: System.Collections.Generic.IEnumerable<DataRuleProblem>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.