Interface IQueryParameterResolver
Resolves a query parameter value from a Url.
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IQueryParameterResolver
Methods
GetParameterValue(String)
Gets the value for the query parameter named queryKey
from the current request.
Declaration
string GetParameterValue(string queryKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryKey | The name of the query parameter. |
Returns
Type | Description |
---|---|
System. |
The value of the query parameter or null if parameter is not present. |
TryGet(String, out IEnumerable<Int32>)
Attempts to extract the value from a given query parameter to a list of integers.
Declaration
bool TryGet(string queryKey, out IEnumerable<int> result)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryKey | The query key. |
System. |
result | The parsed result. |
Returns
Type | Description |
---|---|
System. |
|
TryGet(String, out Int32)
Attempts to extract the value from a given query parameter to an integer.
Declaration
bool TryGet(string queryKey, out int result)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryKey | The query key. |
System. |
result | The parsed result. |
Returns
Type | Description |
---|---|
System. |
|