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
varlabel
Type: Microsoft.SharePoint.Publishing.VariationLabelThe 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.
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.