Share via


UriExtensions Class

Contains extension methods to allow strongly typed objects to be read from the query component of Uri instances.

Inheritance Hierarchy

System.Object
  System.Net.Http.UriExtensions

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class UriExtensions
'Usage
public static class UriExtensions
[ExtensionAttribute]
public ref class UriExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type UriExtensions =  class end
public final class UriExtensions

The UriExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member ParseQueryString Parses the query portion of the specified URI.
Public methodStatic member TryReadQueryAs(Uri, Type, Object%) Reads HTML form URL encoded data provided in the URI query string as an object of a specified type.
Public methodStatic member TryReadQueryAs<T>(Uri, T%) Reads HTML form URL encoded data provided in the URI query string as an object of a specified type.
Public methodStatic member TryReadQueryAsJson Reads HTML form URL encoded data provided in the Uri query component as a JObject object.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Net.Http Namespace