DataRule.Analyze Method
Analyzes a model element and returns any problems that were detected in the element.
Namespace: Microsoft.Data.Schema.StaticCodeAnalysis
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustOverride Function Analyze ( _
ruleSetting As DataRuleSetting, _
context As DataRuleExecutionContext _
) As IList(Of DataRuleProblem)
public abstract IList<DataRuleProblem> Analyze(
DataRuleSetting ruleSetting,
DataRuleExecutionContext context
)
public:
virtual IList<DataRuleProblem^>^ Analyze(
DataRuleSetting^ ruleSetting,
DataRuleExecutionContext^ context
) abstract
abstract Analyze :
ruleSetting:DataRuleSetting *
context:DataRuleExecutionContext -> IList<DataRuleProblem>
public abstract function Analyze(
ruleSetting : DataRuleSetting,
context : DataRuleExecutionContext
) : IList<DataRuleProblem>
Parameters
- ruleSetting
Type: Microsoft.Data.Schema.StaticCodeAnalysis.DataRuleSetting
A DataRuleSetting object that defines the property to analyze.
- context
Type: Microsoft.Data.Schema.StaticCodeAnalysis.DataRuleExecutionContext
A DataRuleExecutionContext object that contains the model element and other properties.
Return Value
Type: System.Collections.Generic.IList<DataRuleProblem>
An IList<T> object that contains DataSchemaError objects that represent any exceptions or errors that were encountered when the model element was analyzed.
.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.