Método DataRuleEngine.ExecuteRules (DataSchemaModel, IEnumerable<DataRule>, IEnumerable<DataSchemaError>%, Predicate<DataRuleProblemSuppressionContext>, Func<Boolean>)
Namespace: Microsoft.Data.Schema.StaticCodeAnalysis
Assembly: Microsoft.Data.Schema (em Microsoft.Data.Schema.dll)
Sintaxe
'Declaração
Public Shared Function ExecuteRules ( _
dataSchemaModel As DataSchemaModel, _
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(
DataSchemaModel dataSchemaModel,
IEnumerable<DataRule> rules,
out IEnumerable<DataSchemaError> errors,
Predicate<DataRuleProblemSuppressionContext> suppressProblem,
Func<bool> executeCanceled
)
public:
static IEnumerable<DataRuleProblem^>^ ExecuteRules(
DataSchemaModel^ dataSchemaModel,
IEnumerable<DataRule^>^ rules,
[OutAttribute] IEnumerable<DataSchemaError^>^% errors,
Predicate<DataRuleProblemSuppressionContext^>^ suppressProblem,
Func<bool>^ executeCanceled
)
static member ExecuteRules :
dataSchemaModel:DataSchemaModel *
rules:IEnumerable<DataRule> *
errors:IEnumerable<DataSchemaError> byref *
suppressProblem:Predicate<DataRuleProblemSuppressionContext> *
executeCanceled:Func<bool> -> IEnumerable<DataRuleProblem>
public static function ExecuteRules(
dataSchemaModel : DataSchemaModel,
rules : IEnumerable<DataRule>,
errors : IEnumerable<DataSchemaError>,
suppressProblem : Predicate<DataRuleProblemSuppressionContext>,
executeCanceled : Func<boolean>
) : IEnumerable<DataRuleProblem>
Parâmetros
- dataSchemaModel
Tipo: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
- rules
Tipo: System.Collections.Generic.IEnumerable<DataRule>
- errors
Tipo: System.Collections.Generic.IEnumerable<DataSchemaError>%
- suppressProblem
Tipo: System.Predicate<DataRuleProblemSuppressionContext>
- executeCanceled
Tipo: System.Func<Boolean>
Valor de retorno
Tipo: System.Collections.Generic.IEnumerable<DataRuleProblem>
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiáveis.