Show / Hide Table of Contents

Class UriExtensions

Useful extension methods for System.Uri.

Inheritance
Object
UriExtensions
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM
Assembly: IRM.dll
Syntax
public static class UriExtensions

Methods

AddQuery(Uri, String, Object)

Adds a query parameter to the System.Uri.

Declaration
public static Uri AddQuery(this Uri uri, string key, object value)
Parameters
System.Uri uri

The System.Uri to add the query parameter to.

String key

The query parameter key.

Object value

The query parameter value.

Returns
System.Uri

AddQuery(Uri, String, String)

Adds a query parameter to the System.Uri.

Declaration
public static Uri AddQuery(this Uri uri, string key, string value)
Parameters
System.Uri uri

The System.Uri to add the query parameter to.

String key

The query parameter key.

String value

The query parameter value.

Returns
System.Uri

GetBaseDomain(Uri)

Returns the base domain from a full domain name.

Declaration
public static string GetBaseDomain(this Uri uri)
Parameters
System.Uri uri

The System.Uri to parse the base domain from.

Returns
String

Returns only the base domain, for example irm.se for http://www.irm.se.

Back to top Generated by DocFX