HttpContextWrapper::RewritePath Method (String^, Boolean)
.NET Framework (current version)
Rewrites the URL by using the specified path and a value that specifies whether the virtual path for server resources is modified.
Assembly: System.Web (in System.Web.dll)
Parameters
- path
-
Type:
System::String^
The path to rewrite to.
- rebaseClientPath
-
Type:
System::Boolean
true to reset the virtual path; false to keep the virtual path unchanged.
| Exception | Condition |
|---|---|
| ArgumentNullException | path is null. |
| HttpException | path is not in the current application's root directory. |
.NET Framework
Available since 3.5
Available since 3.5
Show: