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)

'Declaration
Public Function GetResponseUri ( _
	zone As SPUrlZone, _
	path As String _
) As Uri
'Usage
Dim instance As SPWebApplication
Dim zone As SPUrlZone
Dim path As String
Dim returnValue As Uri

returnValue = instance.GetResponseUri(zone, _
	path)

Parameters

zone
Type: Microsoft.SharePoint.Administration.SPUrlZone

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

path
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.
Show: