MarkLogic XCC/.Net Library |

# ValueFactory.NewVariable Method

Factory method to create a variable named value from the given XName and XdmValue objects.

[Visual Basic]
Public Shared Function NewVariable( _
ByVal name As XName, _
ByVal val As XdmValue _
) As XdmVariable
[C#]
public static XdmVariable NewVariable(
XName name,
XdmValue val
);

#### Parameters

name
  An XName that defines the name and optional
val
  An instance of XdmValue which is the

#### Return Value

An instance of XdmVariable that encapsulates the name and value parameters.

#### See Also

ValueFactory Class | Marklogic.Xcc Namespace