IWebPartVariationUpdate.Update method

Updates any properties within a Web Part control that are dependent on the location of the page in the server hierarchy.

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

Syntax

'Declaration
Sub Update ( _
    ownerWeb As PublishingWeb _
)
'Usage
Dim instance As IWebPartVariationUpdate
Dim ownerWeb As PublishingWeb

instance.Update(ownerWeb)
void Update(
    PublishingWeb ownerWeb
)

Parameters

Examples

String oldAnchor = this.WebAnchorLocation;
//"this" is a Web Part class
this.WebAnchorLocation = ownerWeb.GetVariationUrlFromSourceUrl(oldAnchor);
Dim oldAnchor As String = Me.WebAnchorLocation
'"this" is a Web Part class
Me.WebAnchorLocation = ownerWeb.GetVariationUrlFromSourceUrl(oldAnchor)

See also

Reference

IWebPartVariationUpdate interface

IWebPartVariationUpdate members

Microsoft.SharePoint.Publishing namespace