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

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

HttpRequest.PhysicalApplicationPath プロパティ

現在実行しているサーバー アプリケーションのルート ディレクトリの物理ファイル システム パスを取得します。

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

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

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

プロパティ値
現在のアプリケーションのルート ディレクトリのファイル システム パス。

使用例使用例

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

' Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.PhysicalApplicationPath))
sw.WriteLine(Server.HtmlEncode(Request.PhysicalPath))
sw.WriteLine(Server.HtmlEncode(Request.RawUrl))
// Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.PhysicalApplicationPath));
sw.WriteLine(Server.HtmlEncode(Request.PhysicalPath));
sw.WriteLine(Server.HtmlEncode(Request.RawUrl));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「HttpRequest.PhysicalApplicationPath プロパティ」の関連用語

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

   

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



HttpRequest.PhysicalApplicationPath プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS