SPAlternateUrlCollection.GetResponseUrl method (SPUrlZone, Boolean)
Returns the appropriate URL to use when generating an outbound URL for the specified zone. This method specifies whether to return the response URL for the Default zone if the response URL for the requested zone cannot be found.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetResponseUrl ( _
zone As SPUrlZone, _
withFallback As Boolean _
) As SPAlternateUrl
'Usage
Dim instance As SPAlternateUrlCollection
Dim zone As SPUrlZone
Dim withFallback As Boolean
Dim returnValue As SPAlternateUrl
returnValue = instance.GetResponseUrl(zone, _
withFallback)
public SPAlternateUrl GetResponseUrl(
SPUrlZone zone,
bool withFallback
)
Parameters
zone
Type: Microsoft.SharePoint.Administration.SPUrlZoneAn SPUrlZone value that specifies the zone.
withFallback
Type: System.Booleantrue to return the response URL for the Default zone if the response URL for the requested zone cannot be found; otherwise, false.
Return value
Type: Microsoft.SharePoint.Administration.SPAlternateUrl
A Microsoft.SharePoint.Administration.SPAlternateUrl object representing the URL to use when generating an outbound URL.
See also
Reference
SPAlternateUrlCollection class