PublishingPage.GetVariation Method

Get the peer VariationPublishingPage object that belongs to this PublishingPage object for the specified Label.

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

Syntax

'Declaration
Public Function GetVariation ( _
    varlabel As VariationLabel _
) As PublishingPage
'Usage
Dim instance As PublishingPage
Dim varlabel As VariationLabel
Dim returnValue As PublishingPage

returnValue = instance.GetVariation(varlabel)
public PublishingPage GetVariation(
    VariationLabel varlabel
)

Parameters

Return Value

Type: Microsoft.SharePoint.Publishing.PublishingPage
A PublishingPage object that is a Variation peer of the current PublishingPage in the requested Label.

Remarks

The SPWeb of the PublishingPage that is returned must be closed.

The caller should call the Close method on the returned object when it is no longer needed. Doing this frees the resources allocated for the PublishingWeb object.

See Also

Reference

PublishingPage Class

PublishingPage Members

Microsoft.SharePoint.Publishing Namespace