HttpContextWrapper::RewritePath Method (String^, String^, String^)

 

Rewrites the URL by using the specified path, path information, and query string information.

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

public:
virtual void RewritePath(
	String^ filePath,
	String^ pathInfo,
	String^ queryString
) override

Parameters

filePath
Type: System::String^

The replacement path.

pathInfo
Type: System::String^

Additional path information for a resource.

queryString
Type: System::String^

The request query string.

Exception Condition
ArgumentNullException

The filePath parameter is null.

HttpException

The filePath parameter is not in the current application's root directory.

.NET Framework
Available since 3.5
Return to top
Show: