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

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
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().)

Top

Fields

  Name Description
Public fieldStatic member 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.

See Also

Reference

System.Web.Http Namespace