get_RuleChildName method
The get_RuleChildName method gets the name of the rule under the current SetupNode object.
Description
The name of the rule is the type attribute
in the Setup DCO XML file, and is the same name as the child node
to which the rule applies. In the following rule for documents of
type Invoice, the name of the rule is Main_Page.
<D type="Invoice">
.
.
<P type="Main_Page" pos="0" min="1" max="1"/> <!--Rule-->
Syntax
- C#
string get_RuleChildName(int nIndex)
Arguments
- nIndex
- The index of the rule, where 0 is the first rule under this SetupNode object.
C# Example
This example gets the name of the first rule under the current SetupNode object:string strRuleName = m_oDCOSetupNode.get_RuleChildName(0);