Condividi tramite


IWebPartVariationUpdate Interface

An interface that is implemented by using Web Parts. Use this interface when you need to update properties for a Web Part control that is copied to a Variation site.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Interface IWebPartVariationUpdate
'Usage
Dim instance As IWebPartVariationUpdate
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public interface IWebPartVariationUpdate

Remarks

A Web Part control that is included in a Variation page may inherit certain Variation-specific properties from the source page, such as the URL of the root site from which to take content. When a Variation page is created from a source page that includes such a Web Part, the Web Part retains the property values of the Variation page unless they are explicitly changed.

In a Variation scenario, it is common to change a Web Part's URL so that it points to another locale. For example, when you create a Variation page, you may want the Web Part URL to point to https://server/FR/ instead of https://server/EN/.

To do this, use the IWebPartVariationUpdate interface, which calls the Update method and updates the Web Part's URL.

See Also

Reference

IWebPartVariationUpdate Members

Microsoft.SharePoint.Publishing Namespace

Update

Other Resources

Variations and Multiple Languages Sites in SharePoint Server 2010 (ECM)