Share via

RouteParameter Class

The RouteParameter class can be used to indicate properties about a route parameter (the literals and placeholders located within segments of a RouteTemplate()). It can for example be used to indicate that a route parameter is optional.

Inheritance Hierarchy


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


Public NotInheritable Class RouteParameter
Dim instance As RouteParameter
public sealed class RouteParameter
public ref class RouteParameter sealed
type RouteParameter =  class end
public final class RouteParameter

The RouteParameter type exposes the following members.


  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString Returns a String that represents this instance. (Overrides Object.ToString().)



  Name Description
Public fieldStatic member Optional An optional parameter.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


System.Web.Http Namespace