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 Function GetVariation ( _
    varlabel As VariationLabel _
) As PublishingWeb
Dim instance As PublishingWeb
Dim varlabel As VariationLabel
Dim returnValue As PublishingWeb

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


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.

See also


PublishingWeb class

PublishingWeb members

GetVariation overload

Microsoft.SharePoint.Publishing namespace