Share via


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

  • withFallback
    Type: System.Boolean

    true 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

SPAlternateUrlCollection members

GetResponseUrl overload

Microsoft.SharePoint.Administration namespace