HttpRequest.PhysicalPath プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
要求された URL に一致する物理ファイル システム パスを取得します。
名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文
Public ReadOnly Property PhysicalPath As String
Dim instance As HttpRequest Dim value As String
value = instance.PhysicalPath
public string PhysicalPath { get; }
public: property String^ PhysicalPath { String^ get (); }
/** @property */ public String get_PhysicalPath ()
public function get PhysicalPath () : String
HtmlEncode メソッドを使用して PhysicalPath プロパティの値を 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));
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。