HttpRequest.CurrentExecutionFilePath プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpRequest.CurrentExecutionFilePath プロパティの意味・解説 

HttpRequest.CurrentExecutionFilePath プロパティ

現在の要求仮想パス取得します

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public ReadOnly Property
 CurrentExecutionFilePath As String
Dim instance As HttpRequest
Dim value As String

value = instance.CurrentExecutionFilePath
public string CurrentExecutionFilePath { get;
 }
public:
property String^ CurrentExecutionFilePath {
    String^ get ();
}
/** @property */
public String get_CurrentExecutionFilePath ()
public function get CurrentExecutionFilePath
 () : String

プロパティ
現在の要求仮想パス

解説解説

CurrentExecutionFilePath は、ExecuteTransfer など、リダイレクト使用している場合に、現在実行されているページへの適切なファイル パス返しますクライアント別のページリダイレクトされると、FilePathリダイレクト前の元のページへのパス返しCurrentExecutionFilePath は、リダイレクトの子ページへのパス返しますTransfer メソッドExecute メソッド使用する場合CurrentExecutionFilePath は現在実行中のハンドラ指します

使用例使用例

HtmlEncode メソッド使用して CurrentExecutionFilePath プロパティの値を HTML エンコードし、エンコードした値を WriteLine メソッド使用してファイル書き込むコード例次に示します。このコード例は、HttpRequest クラストピック取り上げているコード例一部分です。

' Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(DateTime.Now.ToString()))
sw.WriteLine(Server.HtmlEncode(Request.CurrentExecutionFilePath))
sw.WriteLine(Server.HtmlEncode(Request.ApplicationPath))
sw.WriteLine(Server.HtmlEncode(Request.FilePath))
sw.WriteLine(Server.HtmlEncode(Request.Path))
// Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(DateTime.Now.ToString()));
sw.WriteLine(Server.HtmlEncode(Request.CurrentExecutionFilePath));
sw.WriteLine(Server.HtmlEncode(Request.ApplicationPath));
sw.WriteLine(Server.HtmlEncode(Request.FilePath));
sw.WriteLine(Server.HtmlEncode(Request.Path));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

HttpRequest.CurrentExecutionFilePath プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpRequest.CurrentExecutionFilePath プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS