HttpContextBase.RewritePath Method (String, Boolean)

 

When overridden in a derived class, 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
)

Parameters

path
Type: System.String

The replacement path.

rebaseClientPath
Type: System.Boolean

true to reset the virtual path; false to keep the virtual path unchanged.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: