HttpRequestBase.CurrentExecutionFilePath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets the virtual path of the current request.
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
Property Value
The virtual path of the page handler that is currently executing.
Exceptions
Always.
Remarks
The CurrentExecutionFilePath property returns the file path of the currently executing page handler.
When you redirect a request using either the HttpServerUtility.Execute method or the HttpServerUtility.Transfer method, the CurrentExecutionFilePath property returns the path of the page that you are redirecting to (the child page). However, when the client is redirected to another page, the FilePath property returns the path to the original page.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈