Partager via


DataRuleEngine.ExecuteRules, méthode (IModelElement, IEnumerable<DataRule>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>, Func<Boolean>)

Espace de noms :  Microsoft.Data.Schema.StaticCodeAnalysis
Assembly :  Microsoft.Data.Schema (dans Microsoft.Data.Schema.dll)

Syntaxe

'Déclaration
Public Shared Function ExecuteRules ( _
    modelElement As IModelElement, _
    rules As IEnumerable(Of DataRule), _
    <OutAttribute> ByRef errors As IEnumerable(Of DataSchemaError), _
    suppressProblem As Predicate(Of DataRuleProblemSuppressionContext), _
    executeCanceled As Func(Of Boolean) _
) As IEnumerable(Of DataRuleProblem)
public static IEnumerable<DataRuleProblem> ExecuteRules(
    IModelElement modelElement,
    IEnumerable<DataRule> rules,
    out IEnumerable<DataSchemaError> errors,
    Predicate<DataRuleProblemSuppressionContext> suppressProblem,
    Func<bool> executeCanceled
)
public:
static IEnumerable<DataRuleProblem^>^ ExecuteRules(
    IModelElement^ modelElement, 
    IEnumerable<DataRule^>^ rules, 
    [OutAttribute] IEnumerable<DataSchemaError^>^% errors, 
    Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem, 
    Func<bool>^ executeCanceled
)
static member ExecuteRules : 
        modelElement:IModelElement * 
        rules:IEnumerable<DataRule> * 
        errors:IEnumerable<DataSchemaError> byref * 
        suppressProblem:Predicate<DataRuleProblemSuppressionContext> * 
        executeCanceled:Func<bool> -> IEnumerable<DataRuleProblem> 
public static function ExecuteRules(
    modelElement : IModelElement, 
    rules : IEnumerable<DataRule>, 
    errors : IEnumerable<DataSchemaError>, 
    suppressProblem : Predicate<DataRuleProblemSuppressionContext>, 
    executeCanceled : Func<boolean>
) : IEnumerable<DataRuleProblem>

Paramètres

Valeur de retour

Type : System.Collections.Generic.IEnumerable<DataRuleProblem>

Sécurité .NET Framework

Voir aussi

Référence

DataRuleEngine Classe

ExecuteRules, surcharge

Microsoft.Data.Schema.StaticCodeAnalysis, espace de noms