GetNodeByName method

The GetNodeByName method accesses a SetupNode object from the Setup DCO by using the object name.

Syntax

VBScript
oSO.GetNodeByName(nType as Long, lpszName as String) as child node as node object
C#
TDCOLib.DCOSetupNode GetNodeByName(int nType, string lpszName)

Arguments

nType
Value indicating the component type:
0 = Batch
1 = Document
2 = Page
3 = Field
lpszName
The node's name, as referenced in the node's type attribute:
<P type="Main_Page">

Returns

The SetupNode object on success; nothing (null) on failure.

C# Example

The following example gets an interface to the node "Main_Page" of type "page" from the Setup DCO:
m_oDCOSetupNode = m_oDCOSetup.GetNodeByName(2, "Main_Page");