HttpContextWrapper::RewritePath Method (String^, Boolean)

 

Rewrites the URL by using the specified path and a value that specifies whether the virtual path for server resources is modified.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
virtual void RewritePath(
	String^ path,
	bool rebaseClientPath
) override

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
Return to top
Show: