SPAlternateUrl.ContextUri Property
Gets the appropriate response URL, also known as outgoing URL, for the context of the current request URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Gets the appropriate response URL, also known as outgoing URL, for the context of the current request URL.