Class WebApplicationUtil
Summary description for WebApplicationUtil.
Inheritance
System.Object
WebApplicationUtil
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib.Web
Assembly: ImageVault.Common.dll
Syntax
public static class WebApplicationUtil
Methods
GetCurrentApplicationUri(String)
Gets the current uri of the request to the site with the supplied path as a relative
Declaration
public static Uri GetCurrentApplicationUri(string path = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The relative path (to the application) that the uri should go to |
Returns
Type | Description |
---|---|
System.Uri |
GetCurrentApplicationUri(HttpContextBase, String)
Gets the current uri of the request to the site with the supplied path as a relative
Declaration
public static Uri GetCurrentApplicationUri(HttpContextBase current, string path)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | current | The current System.Web.HttpContextBase for the request |
System.String | path | The relative path (to the application) that the uri should go to |
Returns
Type | Description |
---|---|
System.Uri |
GetCurrentApplicationUri(HttpContextBase, Uri, String)
Gets the current uri of the request to the site with the supplied path as a relative
Declaration
public static Uri GetCurrentApplicationUri(HttpContextBase current, Uri fallbackApplicationUri = null, string path = null)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | current | The current System.Web.HttpContextBase for the request |
System.Uri | fallbackApplicationUri | Indicates the fallback uri if the current context is not present |
System.String | path | The relative path (to the application) that the uri should go to |
Returns
Type | Description |
---|---|
System.Uri |