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
System.Object
  System.Web.Http.RouteParameter
Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public NotInheritable Class RouteParameter
'Usage
Dim instance As RouteParameter
public sealed class RouteParameter
public ref class RouteParameter sealed
[<SealedAttribute>]
type RouteParameter =  class end
public final class RouteParameter
The RouteParameter type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | ToString | Returns a String that represents this instance. (Overrides Object.ToString().) | 
Top
Fields
| Name | Description | |
|---|---|---|
| .jpeg) .gif) | Optional | An optional parameter. | 
Top
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.