HttpServerUtilityBase.TransferRequest 方法

定義

在衍生類別中覆寫時,以非同步方式執行位於指定 URL 的結束點。When overridden in a derived class, asynchronously executes the end point at the specified URL.

多載

TransferRequest(String)

在衍生類別中覆寫時,以非同步方式執行位於指定 URL 的結束點。When overridden in a derived class, asynchronously executes the end point at the specified URL.

TransferRequest(String, Boolean)

在衍生類別中覆寫時,於指定 URL 以非同步方式執行端點,並指定是否要清除 QueryStringForm 集合。When overridden in a derived class, asynchronously executes the endpoint at the specified URL and specifies whether to clear the QueryString and Form collections.

TransferRequest(String, Boolean, String, NameValueCollection)

在衍生類別中覆寫時,使用指定的 HTTP 方法和標頭,以非同步方式在指定的 URL 執行端點。When overridden in a derived class, asynchronously executes the endpoint at the specified URL by using the specified HTTP method and headers.

TransferRequest(String, Boolean, String, NameValueCollection, Boolean)

在衍生類別中實作時,使用指定的 HTTP 方法、標頭、路徑,以及保留表單值和保留使用者識別的選項,以非同步方式執行位於指定的 URL 上的結束點。When implemented in a derived class, asynchronously executes the end point at the specified URL, using the specified HTTP method, headers, path, and options to preserve form values and preserve the user identity.

TransferRequest(String)

在衍生類別中覆寫時,以非同步方式執行位於指定 URL 的結束點。When overridden in a derived class, asynchronously executes the end point at the specified URL.

public:
 virtual void TransferRequest(System::String ^ path);
public virtual void TransferRequest (string path);
abstract member TransferRequest : string -> unit
override this.TransferRequest : string -> unit
Public Overridable Sub TransferRequest (path As String)

參數

path
String

要執行的網頁 URL 或處理常式。The URL of the page or handler to execute.

例外狀況

永遠。Always.

適用於

TransferRequest(String, Boolean)

在衍生類別中覆寫時,於指定 URL 以非同步方式執行端點,並指定是否要清除 QueryStringForm 集合。When overridden in a derived class, asynchronously executes the endpoint at the specified URL and specifies whether to clear the QueryString and Form collections.

public:
 virtual void TransferRequest(System::String ^ path, bool preserveForm);
public virtual void TransferRequest (string path, bool preserveForm);
abstract member TransferRequest : string * bool -> unit
override this.TransferRequest : string * bool -> unit
Public Overridable Sub TransferRequest (path As String, preserveForm As Boolean)

參數

path
String

要執行的網頁 URL 或處理常式。The URL of the page or handler to execute.

preserveForm
Boolean

true 表示保留 QueryStringForm 集合; false 表示清除 QueryStringForm 集合。true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.

例外狀況

永遠。Always.

適用於

TransferRequest(String, Boolean, String, NameValueCollection)

在衍生類別中覆寫時,使用指定的 HTTP 方法和標頭,以非同步方式在指定的 URL 執行端點。When overridden in a derived class, asynchronously executes the endpoint at the specified URL by using the specified HTTP method and headers.

public:
 virtual void TransferRequest(System::String ^ path, bool preserveForm, System::String ^ method, System::Collections::Specialized::NameValueCollection ^ headers);
public virtual void TransferRequest (string path, bool preserveForm, string method, System.Collections.Specialized.NameValueCollection headers);
abstract member TransferRequest : string * bool * string * System.Collections.Specialized.NameValueCollection -> unit
override this.TransferRequest : string * bool * string * System.Collections.Specialized.NameValueCollection -> unit
Public Overridable Sub TransferRequest (path As String, preserveForm As Boolean, method As String, headers As NameValueCollection)

參數

path
String

要執行的網頁 URL 或處理常式。The URL of the page or handler to execute.

preserveForm
Boolean

true 表示保留 QueryStringForm 集合; false 表示清除 QueryStringForm 集合。true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.

method
String

要用於新要求的 HTTP 方法 (GETPOST 等等)。The HTTP method (GET, POST, and so on) to use for the new request. 如果是 null,會使用原始要求的 HTTP 方法。If null, the HTTP method of the original request is used.

headers
NameValueCollection

新要求之要求標頭的集合。A collection of request headers for the new request.

例外狀況

永遠。Always.

適用於

TransferRequest(String, Boolean, String, NameValueCollection, Boolean)

在衍生類別中實作時,使用指定的 HTTP 方法、標頭、路徑,以及保留表單值和保留使用者識別的選項,以非同步方式執行位於指定的 URL 上的結束點。When implemented in a derived class, asynchronously executes the end point at the specified URL, using the specified HTTP method, headers, path, and options to preserve form values and preserve the user identity.

public:
 virtual void TransferRequest(System::String ^ path, bool preserveForm, System::String ^ method, System::Collections::Specialized::NameValueCollection ^ headers, bool preserveUser);
public virtual void TransferRequest (string path, bool preserveForm, string method, System.Collections.Specialized.NameValueCollection headers, bool preserveUser);
abstract member TransferRequest : string * bool * string * System.Collections.Specialized.NameValueCollection * bool -> unit
override this.TransferRequest : string * bool * string * System.Collections.Specialized.NameValueCollection * bool -> unit
Public Overridable Sub TransferRequest (path As String, preserveForm As Boolean, method As String, headers As NameValueCollection, preserveUser As Boolean)

參數

path
String

路徑。The path.

preserveForm
Boolean

true 表示保留 QueryStringForm 集合; false 表示清除 QueryStringForm 集合。true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.

method
String

用於新要求的 HTTP 方法。The HTTP method to use for the new request.

headers
NameValueCollection

包含新要求之要求標頭的 NameValueCollection 物件。A NameValueCollection object that contains request headers for the new request.

preserveUser
Boolean

true 表示要保留使用者識別,否則為 falsetrue to preserve the user identity; otherwise, false. 這個方法的其他多載會在 preserveUser 參數設定為 true 的情況下,呼叫這個方法多載。Other overloads of this method call this method overload with the preserveUser parameter set to true.

適用於