Method GetQueryValue
GetQueryValue(string)
Gets a query value using an case-insensitive search.
public string? GetQueryValue(string queryKeyName)
Parameters
queryKeyName
stringThe query value name.
Returns
GetQueryValue<T>(string, T)
Gets the value stored from the Query and converts it to the given type.
public T GetQueryValue<T>(string queryKeyName, T defaultValue = default) where T : struct
Parameters
queryKeyName
stringThe name of the URL parameter. The search is ignore-case.
defaultValue
TThe default value that will be returned if the item is not found in the query.
Returns
- T
Type Parameters
T
The parseable type which will be converted to.