SPWebApplication.GetResponseUri method (SPUrlZone, String)

Retrieves the absolute root of the URI for the given zone and appends the specified path to the end.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Uri GetResponseUri(
	SPUrlZone zone,
	string path


Type: Microsoft.SharePoint.Administration.SPUrlZone

An SPUrlZone object that represents the zone of the response URL.

Type: System.String

A string that contains a server-relative path to append to the end of the root.

Return value

Type: System.Uri
A Uri object that provides the absolute root of the URI followed by the specified path.