Table of Contents

Class RouteParameter

Namespace
System.Web.Http
Assembly
System.Web.Http.dll

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

public sealed class RouteParameter
Inheritance
RouteParameter
Inherited Members

Fields

Optional

An optional parameter.

public static readonly RouteParameter Optional

Field Value

RouteParameter

Methods

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.