







![]() ![]() |
C# Webserver |
RedirectRule Constructor (String, String) |
RedirectRule Class Example See Also Send Feedback |
Initializes a new instance of the RedirectRule class.
Namespace:
HttpServer.Rules
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public RedirectRule( string fromUrl, string toUrl ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ fromUrl As String, _ toUrl As String _ ) |
Visual C++ |
---|
public: RedirectRule( String^ fromUrl, String^ toUrl ) |
Parameters
- fromUrl
- Type: System..::.String
Absolute path (no servername)
- toUrl
- Type: System..::.String
Absolute path (no servername)
Examples
server.Add(new RedirectRule("/", "/user/index"));