Table of Contents

Method GetQueryValue

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

GetQueryValue(string)

Gets a query value using an case-insensitive search.

public string? GetQueryValue(string queryKeyName)

Parameters

queryKeyName string

The query value name.

Returns

string

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 string

The name of the URL parameter. The search is ignore-case.

defaultValue T

The 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.