Share via


Evaluate Method of the IConstraint Interface

Evaluate Method of the IConstraint Interface

Triggers the manager to evaluate the constraint.

  [C#]
public abstract ConstraintError[] Evaluate();

FakePre-1cf465a0ac7540c5843abb3fc417126d-a8c4beb8dfd8454e89a9c03269c0b268

Parameters

This method has no parameters.

Return Value

An array of constraint errors. If there are no constraint errors, the length of this array is zero.

Remarks

A constraint has access to the settings that are specified by setting declarations in the ConstraintDefinition complex type.

The manager generator (Sdmg.exe) can be used to generate a partial class with properties that correspond to SDM settings.

Add the Evaluate method to the partial class that the manager generator creates.

If an exception is thrown by the manager from the Evaluate method, the exception will be reported as an error in SDM.

Requirements

Namespace

Defined in Microsoft.SystemDefinitionModel.Manager.

Assembly

Requires Microsoft.Sdm.Manager (in Microsoft.Sdm.Manager.dll).

.NET Framework

Requires .NET Framework 2.0.

See Also

Microsoft.SystemDefinitionModel.Manager
IConstraint

Send comments about this topic to Microsoft

Build date: 10/2/2007