Show / Hide Table of Contents

Class QueryParameterRetriever

Parameter retriever that retrieves a query parameter by name

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

Constructors

| Improve this Doc View Source

QueryParameterRetriever(String, String)

Initializes a new instance of the QueryParameterRetriever class.

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

The name of the query 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 query 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