Walter.Net.Networking
TryGetQuery<T> Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > UriHelpers Class : TryGetQuery<T> Method
The type to cast into
The URI.
Name of the argument.
The value to populate.
Tries the get query parameter from a query string in the expected data type, will fail if the key doesn't exists or the value is not compatible.
Syntax
public static bool TryGetQuery<T>( 
   Uri uri,
   string argumentName,
   out T? value
)

Parameters

uri
The URI.
argumentName
Name of the argument.
value
The value to populate.

Type Parameters

T
The type to cast into

Return Value

true if successful, false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UriHelpers Class
UriHelpers Members