PublishingWeb.GetVariation method (VariationLabel)

Gets the peer Variation Publishing site of this PublishingWeb object for the given varlabel.

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

public PublishingWeb GetVariation(
	VariationLabel varlabel


Type: Microsoft.SharePoint.Publishing.VariationLabel

The Variation Label used to search for the Variation peer PublishingWeb of the current PublishingWeb object.

Return value

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

Call the Close method for the returned object when it is no longer needed to free resources that are allocated to the PublishingWeb object.