HttpContextWrapper.RewritePath メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
内部書き換えパスを割り当てます。これにより、要求された URL がリソースの内部パスと異なります。
オーバーロード
| 名前 | 説明 |
|---|---|
| RewritePath(String, String, String, Boolean) |
指定したパス、パス情報、クエリ文字列情報、およびクライアント ファイル パスが書き換えパスに設定されているかどうかを指定する値を使用して、URL を書き換えます。 |
| RewritePath(String, String, String) |
指定したパス、パス情報、およびクエリ文字列情報を使用して URL を書き換えます。 |
| RewritePath(String, Boolean) |
指定したパスと、サーバー リソースの仮想パスが変更されるかどうかを示す値を使用して、URL を書き換えます。 |
| RewritePath(String) |
指定したパスを使用して URL を書き換える。 |
RewritePath(String, String, String, Boolean)
指定したパス、パス情報、クエリ文字列情報、およびクライアント ファイル パスが書き換えパスに設定されているかどうかを指定する値を使用して、URL を書き換えます。
public:
override void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString, bool setClientFilePath);
public override void RewritePath(string filePath, string pathInfo, string queryString, bool setClientFilePath);
override this.RewritePath : string * string * string * bool -> unit
Public Overrides Sub RewritePath (filePath As String, pathInfo As String, queryString As String, setClientFilePath As Boolean)
パラメーター
- filePath
- String
置換パス。
- pathInfo
- String
リソースの追加パス情報。
- queryString
- String
要求クエリ文字列。
- setClientFilePath
- Boolean
true クライアント リソースに使用されるファイル パスを filePath パラメーターの値に設定する場合は a0/>。それ以外の場合は false。
例外
filePath は nullです。
filePath が現在のアプリケーションのルート ディレクトリにありません。
適用対象
RewritePath(String, String, String)
指定したパス、パス情報、およびクエリ文字列情報を使用して URL を書き換えます。
public:
override void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString);
public override void RewritePath(string filePath, string pathInfo, string queryString);
override this.RewritePath : string * string * string -> unit
Public Overrides Sub RewritePath (filePath As String, pathInfo As String, queryString As String)
パラメーター
- filePath
- String
置換パス。
- pathInfo
- String
リソースの追加パス情報。
- queryString
- String
要求クエリ文字列。
例外
filePath パラメーターはnull。
filePath パラメーターは、現在のアプリケーションのルート ディレクトリにありません。
適用対象
RewritePath(String, Boolean)
指定したパスと、サーバー リソースの仮想パスが変更されるかどうかを示す値を使用して、URL を書き換えます。
public:
override void RewritePath(System::String ^ path, bool rebaseClientPath);
public override void RewritePath(string path, bool rebaseClientPath);
override this.RewritePath : string * bool -> unit
Public Overrides Sub RewritePath (path As String, rebaseClientPath As Boolean)
パラメーター
- path
- String
書き換えのパス。
- rebaseClientPath
- Boolean
true 仮想パスをリセットする場合。仮想パスを変更しないように false します。
例外
path は nullです。
path が現在のアプリケーションのルート ディレクトリにありません。
適用対象
RewritePath(String)
指定したパスを使用して URL を書き換える。
public:
override void RewritePath(System::String ^ path);
public override void RewritePath(string path);
override this.RewritePath : string -> unit
Public Overrides Sub RewritePath (path As String)
パラメーター
- path
- String
置換パス。
例外
path は nullです。
path が現在のアプリケーションのルート ディレクトリにありません。