get_RuleMinNumber method
The get_RuleMinNumber method gets the minimum number of child objects of the specified type that must be associated with the parent object to avoid violating a document integrity rule.
Description
The minimum number is the min attribute
in the Setup DCO XML file. In the following rule, the minimum number
of pages of type Main_Page that a document of type Invoice must
have is 1.
<D type="Invoice">
.
.
<P type="Main_Page" pos="0" min="1" max="1"/> <!--Rule-->
Syntax
- C#
int get_RuleMinNumber(int nIndex)
Arguments
- nIndex
- The index of the rule index, where 0 is the first rule under the current SetupNode object.
C# example
This example gets the min attribute of the first rule under the current SetupNode object.int nMinNum = m_oDCOSetupNode.get_RuleMinNumber(0);