Class UriExtensions
Useful extension methods for System.Uri.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
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. |