HttpRequestBase.CurrentExecutionFilePath 屬性

定義

在衍生類別中覆寫時,取得目前要求的虛擬路徑。

public:
 virtual property System::String ^ CurrentExecutionFilePath { System::String ^ get(); };
public virtual string CurrentExecutionFilePath { get; }
member this.CurrentExecutionFilePath : string
Public Overridable ReadOnly Property CurrentExecutionFilePath As String

屬性值

String

目前執行之網頁處理常式的虛擬路徑。

例外狀況

備註

屬性會傳回 CurrentExecutionFilePath 目前正在執行之頁面處理常式的檔案路徑。

當您使用方法或方法來重新導向要求時 HttpServerUtility.Execute HttpServerUtility.Transfer ,屬性會傳回您要重新導向 CurrentExecutionFilePath 以 (子頁面) 的頁面路徑。 但是,當用戶端重新導向至另一個頁面時,屬性會傳回 FilePath 原始頁面的路徑。

適用於