RoutePrefixAttribute Constructor

 

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

Overload List

Name Description
System_CAPS_protmethod RoutePrefixAttribute()

Initializes a new instance of the RoutePrefixAttribute class.

System_CAPS_pubmethod RoutePrefixAttribute(String)

Initializes a new instance of the RoutePrefixAttribute class.

See Also

RoutePrefixAttribute Class
System.Web.Http Namespace

Return to top

RoutePrefixAttribute Constructor ()

Initializes a new instance of the RoutePrefixAttribute class.

Syntax

protected RoutePrefixAttribute()
protected:
RoutePrefixAttribute()
new : unit -> RoutePrefixAttribute
Protected Sub New

Return to top

RoutePrefixAttribute Constructor (String)

Initializes a new instance of the RoutePrefixAttribute class.

Syntax

public RoutePrefixAttribute(
    string prefix
)
public:
RoutePrefixAttribute(
    String^ prefix
)
new : 
        prefix:string -> RoutePrefixAttribute
Public Sub New (
    prefix As String
)

Parameters

  • prefix
    Type: System.String

    The route prefix for the controller.

Return to top