HttpServerUtilityWrapper::TransferRequest Method (String^, Boolean, String^, NameValueCollection^, Boolean)
.NET Framework (current version)
Performs an asynchronous execution of the specified URL using the specified HTTP method, headers, path, and options to preserve form values and preserve the user identity.
Assembly: System.Web (in System.Web.dll)
public: virtual void TransferRequest( String^ path, bool preserveForm, String^ method, NameValueCollection^ headers, bool preserveUser ) override
Parameters
- path
-
Type:
System::String^
The path.
- preserveForm
-
Type:
System::Boolean
true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.
- method
-
Type:
System::String^
The HTTP method to use in the new request.
- headers
-
Type:
System.Collections.Specialized::NameValueCollection^
A NameValueCollection object that contains request headers for the new request.
- preserveUser
-
Type:
System::Boolean
true to preserve the user identity; otherwise, false. Other overloads of this method call this method overload with the preserveUser parameter set to true.
| Exception | Condition |
|---|---|
| PlatformNotSupportedException | The request requires the integrated pipeline mode of IIS 7.0. |
| HttpException | The server is not available to handle the request. |
| ArgumentNullException | The path parameter is null. |
| ArgumentException | The path parameter is invalid. |
.NET Framework
Available since 4.5
Available since 4.5
Show: