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
- ownerWeb
Type: Microsoft.SharePoint.Publishing.PublishingWeb
Owner of the PublishingWeb
Examples
String oldAnchor = this.WebAnchorLocation;
//"this" is a Web Part class
this.WebAnchorLocation = ownerWeb.GetVariationUrlFromSourceUrl(oldAnchor);
See Also
Reference
IWebPartVariationUpdate Interface