get_Variable method

The get_Variable method gets the value of a variable from the SetupNode object. You can use this method to identify objects (for example, pages) that require special processing when a variable contains a specific value.

Attention: .NET only. For VBScript, use theVariable property property instead.

Description

The following example shows three variables that are associated with the page node Main_Page in the Setup DCO file.
<P type="Main_Page">
   <V n="ID">0</V>                    0 
   <V n="TYPE">Page</V>               1 
   <V n="STATUS">0</V>                2 

 0  Variable 0 (name = ID, value = 0)

 1  Variable 1 (name = TYPE, value = Page)

 2  Variable 2 (name = STATUS, value = 0)

Syntax

C#
string get_Variable(string lpszName)

Arguments

lpszName
The variable name (case sensitive)

C# Example

The following example gets the value of the variable TYPE from the page node Main_Page in the Setup DCO.
TDCOLib.DCOSetupNode m_oDCOSetupNode = m_oDCOSetup.GetNodeByName(2, "Main_Page");
string strValue = m_oDCOSetupNode.get_Variable("TYPE");