DynamicDOM v0.43.2. Implementation based on XRules v0.43

CalculateRule Class

Implements the <calculate> rule.

For a list of all members of this type, see CalculateRule Members.

System.Object
   XRules.RuleBase
      XRules.CalculateRule

[Visual Basic]
Public Class CalculateRule
    Inherits RuleBase
[C#]
public class CalculateRule : RuleBase
[C++]
public __gc class CalculateRule : public RuleBase
[JScript]
public class CalculateRule extends RuleBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

<xr:calculate target = "ItemTotal" createNode="first|last|never"> 
    <xr:value when="UnitPrice != '' and Quantity != ''">UnitPrice * Quantity</xr:value>
    <xr:value>0</xr:value>
    <xr:errorMessage>Wrong ItemTotal</xr:errorMessage>    <!-- TODO: errorMessage for this rule is not implemented yet. -->
</xr:calculate>

Requirements

Namespace: XRules

Assembly: XRules.DynamicDom (in XRules.DynamicDom.dll)

See Also

CalculateRule Members | XRules Namespace