get_RuleObjectType method

The get_RuleObjectType method gets the type of an object.

Attention: .NET only. For VBScript, use the RuleObjectType property instead.

Description

The type of an object is defined by a value range of 0-3.

0 = Batch

1 = Document

2 = Page

3 = Field

In the following rule for documents of type Invoice, the object type is 2 (Page).
<D type="Invoice">
   .
   .
   <P type="Main_Page" pos="0" min="1" max="1"/>    <!--Rule-->

Syntax

C#
int get_RuleObjectType(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 object type for the first rule under the current SetupNode object.
int nRuleType = m_oDCOSetupNode.get_RuleObjectType(0);