MarkLogic XCC/.Net Library |

# Request Methods

The methods of the Request interface are listed below. For a complete list of Request interface members, see the Request Members topic.

#### Public Instance Methods

ClearVariable | Remove the given variable from this Request context. The variable and its value are still valid and may be reassociated with the session by passing it to the Variable property.
ClearVariables | Remove any variables set in this Request.
SetNewIntegerVariable | Overloaded. Convenience method that creates a new XSInteger, binds it to this Request and then returns the new XSInteger instance. This method is equivalent to:

                XdmVariable temp = ValueFactory.newVariable (
                ValueFactory.newXName (namespace, localname),
                ValueFactory.newValue (ValueType.XS_INTEGER, value));
                request.setVariable (temp);
                return temp;
SetNewStringVariable | Overloaded. 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;
SetNewVariable | Overloaded. Convenience method that creates a new XdmVariable, binds it to this Request and then returns the new XdmVariable object. This method is equivalent to:

                XdmVariable temp = ValueFactory.newVariable (xname, value);
                request.setVariable (temp);
                return temp;

#### See Also

Request Interface | Marklogic.Xcc Namespace