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)

Syntax

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

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

Parameters

Return Value

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

Remarks

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

Reference

PublishingWeb Class

PublishingWeb Members

GetVariation Overload

Microsoft.SharePoint.Publishing Namespace