Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetVariation method

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)

public PublishingPage GetVariation(
	VariationLabel varlabel
)

Parameters

varlabel
Type: Microsoft.SharePoint.Publishing.VariationLabel

The Variation Label to use to search for the Variation peer page of the current PublishingPage.

Return value

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

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.

Show:
© 2015 Microsoft