StaticContextSettings.DeclareVariable Method (XmlQualifiedName)StaticContextSettings.DeclareVariable Method (XmlQualifiedName)StaticContextSettings::DeclareVariable Method (XmlQualifiedName^)

Declares an external variable with the specified name.

Syntax

Public Sub DeclareVariable( _
    name As System.Xml.XmlQualifiedName _
)
public void DeclareVariable(
    System.Xml.XmlQualifiedName name
)
public:
void DeclareVariable(
    System.Xml::XmlQualifiedName^ name
)
 

Parameters

name

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

The qualified name of the variable

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionname is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

Calling this method is equivalent to the following XQuery declaration:

 
            declare variable    external;