다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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