Show / Hide Table of Contents

Class RouteValueRetriever

Parameter retriever that retrieves a route parameter by name

Inheritance
Object
ParameterRetriever
RouteValueRetriever
Namespace: Seltzr.ParameterRetrievers
Assembly: Seltzr.dll
Syntax
C#
public class RouteValueRetriever : ParameterRetriever

Constructors

| Improve this Doc View Source

RouteValueRetriever(String, String)

Initializes a new instance of the RouteValueRetriever class.

C#
public RouteValueRetriever(string name, string defaultValue = null)
Parameters
nameString

The name of the route parameter to retrieve

defaultValueString

The default value of the parameter if none is specified

Methods

| Improve this Doc View Source

GetValue(HttpRequest)

Gets the value of the route parameter for the given request

C#
public override string GetValue(HttpRequest request)
Parameters
requestHttpRequest

The HTTP request context

Returns

String

The retrieved parameter value

Overrides
ParameterRetriever.GetValue(HttpRequest)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX