Variations.GetPeerUrl method

Returns the corresponding publishing page URL for the specified VariationLabel object.

Namespace:  Microsoft.SharePoint.Client.Publishing
Assembly:  Microsoft.SharePoint.Client.Publishing (in Microsoft.SharePoint.Client.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetPeerUrl ( _
    context As ClientRuntimeContext, _
    currentUrl As String, _
    labelTitle As String _
) As ClientResult(Of String)
'Usage
Dim context As ClientRuntimeContext
Dim currentUrl As String
Dim labelTitle As String
Dim returnValue As ClientResult(Of String)

returnValue = Variations.GetPeerUrl(context, _
    currentUrl, labelTitle)
public static ClientResult<string> GetPeerUrl(
    ClientRuntimeContext context,
    string currentUrl,
    string labelTitle
)

Parameters

  • currentUrl
    Type: System.String

    The server-relative URL of the page whose corresponding object in the specified label is requested.

  • labelTitle
    Type: System.String

    The Title of the target label that the page is requested in.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
The URL.

Remarks

This method returns the server-relative URL of the corresponding page in the indicated label if there is one. If the server-relative URL is not found, then this method returns the corresponding Web site URL in that label. Finally, if the Web site URL is not found, then this method returns the corresponding URL of the label.

See also

Reference

Variations class

Variations members

Microsoft.SharePoint.Client.Publishing namespace