







![]() ![]() |
C# Webserver |
ControllerNameAttribute Constructor |
ControllerNameAttribute Class See Also Send Feedback |
Maps a controller to a url without using the controller name.
Namespace:
HttpServer.Controllers
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public ControllerNameAttribute( string name ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ name As String _ ) |
Visual C++ |
---|
public: ControllerNameAttribute( String^ name ) |
Parameters
- name
- Type: System..::.String
The name.
Remarks
Per default the class name is used to determine which url to handle. For instance, "class UserController" or "class User" tells the framework that the urls that starts with "/user" should be handled by that controller.
This attribute can be used to circumvent that.