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.
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] [AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public interface IWebPartVariationUpdate
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 http://server/FR/ instead of http://server/EN/.
To do this, use the IWebPartVariationUpdate interface, which calls the Update method and updates the Web Part's URL.