XPathSettings.DeclareVariable Method (XmlQualifiedName, XdmType)XPathSettings.DeclareVariable Method (XmlQualifiedName, XdmType)XPathSettings::DeclareVariable Method (XmlQualifiedName^, XdmType^)

Declares a variable with the specified name.

Syntax

Public Sub DeclareVariable( _
    varName As System.Xml.XmlQualifiedName, _
    type As XdmType _
)
public void DeclareVariable(
    System.Xml.XmlQualifiedName varName,
    XdmType type
)
public:
void DeclareVariable(
    System.Xml::XmlQualifiedName^ varName, 
    XdmType^ type
)
 

Parameters

varName

Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^

The name of the variable.

type

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

The static type of the variable.

Remarks

If two variables with the same name are declared, the last declaration take precedence.