Table of Contents

Class UriExtensions

Namespace
Tharga.Toolkit
Assembly
Tharga.Toolkit.dll

Extension methods for working with Uri instances.

public static class UriExtensions
Inheritance
UriExtensions
Inherited Members

Methods

GetQueryValue(Uri, string)

Gets all values for a given query parameter name from the URI. Values are URL-decoded.

public static IEnumerable<string> GetQueryValue(this Uri uri, string name)

Parameters

uri Uri

The URI to extract query values from.

name string

The query parameter name to match.

Returns

IEnumerable<string>

An enumerable of matching query parameter values.

RemoveQuery(Uri)

Returns a new URI with the query string removed.

public static Uri RemoveQuery(this Uri uri)

Parameters

uri Uri

Returns

Uri