IConstraint.Evaluate method [SDM] 

 
SDM Reference

IConstraint.Evaluate()

Triggers the manager to evaluate the constraint.

public abstract ConstraintError[] Evaluate();
Public MustOverride Function Evaluate() As ConstraintError()
Implements IConstraint.Evaluate

Parameters

This method has no parameters.

Return Values

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

  
  Last updated: November 2005  |  What did you think of this topic?  |  Order a Platform SDK CD
  © Microsoft Corporation. All rights reserved. Terms of use.