MarkLogic XCC/.Net Library |

# Request.SetNewStringVariable Method (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:

    request.setNewStringVariable (null, localname, value)

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

#### Parameters

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 | String, String)