PublishingWeb.GetVariation método (VariationLabel, Boolean)
Get the peer variation PublishingWeb object of this PublishingWeb object for the given label.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)
Sintaxe
'Declaração
Public Function GetVariation ( _
varlabel As VariationLabel, _
forceRefresh As Boolean _
) As PublishingWeb
'Uso
Dim instance As PublishingWeb
Dim varlabel As VariationLabel
Dim forceRefresh As Boolean
Dim returnValue As PublishingWeb
returnValue = instance.GetVariation(varlabel, _
forceRefresh)
public PublishingWeb GetVariation(
VariationLabel varlabel,
bool forceRefresh
)
Parâmetros
varlabel
Tipo: Microsoft.SharePoint.Publishing.VariationLabelThe variation label to use to search for the variation peer PublishingWeb object of the current PublishingWeb object.
forceRefresh
Tipo: System.BooleanA flag to indicate whether finding the peer PublishingWeb object is using cache.
Valor retornado
Tipo: Microsoft.SharePoint.Publishing.PublishingWeb
Returns PublishingWeb object that is a variation peer of the current PublishingWeb object in the requested Label object..
Comentários
Caller should call the Close() method on the returned object when it is not longer needed. It frees up the resources that are allocated to the PublishingWeb object.