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

OccurRule Constructor (Ruleset, Ruleset, String, String, String, String, String, String)

Constructs a new OccurRule having the specification supplied by the parameters.

[Visual Basic]
Public Sub New( _ 
   ByVal parentRuleset As Ruleset, _ 
   ByVal creator As Ruleset, _ 
   ByVal target As String, _ 
   ByVal minOccurs As String, _ 
   ByVal maxOccurs As String, _ 
   ByVal errorMessage As String, _ 
   ByVal errorMessage_minOccurs As String, _ 
   ByVal errorMessage_maxOccurs As String _ 
)
[C#]
public OccurRule(
   Ruleset parentRuleset,
   Ruleset creator,
   string target,
   string minOccurs,
   string maxOccurs,
   string errorMessage,
   string errorMessage_minOccurs,
   string errorMessage_maxOccurs
);
[C++]
public: OccurRule(
   Ruleset* parentRuleset,
   Ruleset* creator,
   String* target,
   String* minOccurs,
   String* maxOccurs,
   String* errorMessage,
   String* errorMessage_minOccurs,
   String* errorMessage_maxOccurs
);
[JScript]
public function OccurRule(
   Ruleset parentRuleset,
   Ruleset creator,
   String target,
   String minOccurs,
   String maxOccurs,
   String errorMessage,
   String errorMessage_minOccurs,
   String errorMessage_maxOccurs
);

Parameters

parentRuleset
A reference to the parent ruleset.
creator
A reference to the ruleset object that created this occur rule.
target
A string representing the name of the target node; the node that its occurrences are restricted by this OccurRule.
minOccurs
A string specifying the minimum number of particles that should exist.
maxOccurs
A string specifying the maximum number of particles that can exist.
errorMessage
A string specifying the default error string to be reported if the min/max requirements are not satisfied.
errorMessage_minOccurs
A string specifying the error string to be reported if min. requirement is not satisfied.
errorMessage_maxOccurs
A string specifying the error string to be reported if max. requirement is not satisfied.

See Also

OccurRule Class | XRules Namespace | OccurRule Constructor Overload List