MarkLogic XCC/.Net Library |

# Request.SetNewStringVariable Method

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)

#### Overload List

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)

> XdmVariable SetNewStringVariable(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;

> XdmVariable SetNewStringVariable(string,string,string);

#### See Also

Request Interface | Marklogic.Xcc Namespace | String, String)