Table of Contents

Method GetQueryValue

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

GetQueryValue(string)

Gets a query value using an case-insensitive search.

[Obsolete("This method is deprecated and will be removed in later Sisk versions. Please, use the Query property instead.")]
public string? GetQueryValue(string queryKeyName)

Parameters

queryKeyName string

The query value name.

Returns

string

GetQueryValue<T>(string)

Gets the value stored from the Query and converts it to the given type.

[Obsolete("This method is deprecated and will be removed in later Sisk versions. Please, use the Query property instead.")]
public T GetQueryValue<T>(string queryKeyName) where T : IParsable<T>

Parameters

queryKeyName string

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

Returns

T

Type Parameters

T

The parseable type which will be converted to.