MarkLogic XCC/.Net Library

Request.SetNewStringVariable Method (String, String, String)

Convenience method that creates a new XSString, binds it to this Request and then returns the new XSString instance. This method is equivalent to:

            XdmVariable temp = ValueFactory.newVariable (
            ValueFactory.newXName (namespace, localname),
            ValueFactory.newValue (ValueType.XS_STRING, value));
            request.setVariable (temp);
            return temp;
            

[Visual Basic]
Function SetNewStringVariable( _
   ByVal ns As String, _
   ByVal localname As String, _
   ByVal val As String _
) As XdmVariable
[C#]
XdmVariable SetNewStringVariable(
   string ns,
   string localname,
   string val
);

Parameters

ns
A namespace String, or null for the default namespace.
localname
The local name as a String.
val
A String that contains the value.

Return Value

An instance of XSString

See Also

Request Interface | Marklogic.Xcc Namespace | Request.SetNewStringVariable Overload List