Freigeben über


IWebPartVariationUpdate.Update-Methode

Aktualisiert alle Eigenschaften innerhalb eines Webparts-Steuerelements, die den Speicherort der Seite in der Hierarchie abhängig sind.

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
)

Parameter

Beispiele

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)

Siehe auch

Referenz

IWebPartVariationUpdate Schnittstelle

IWebPartVariationUpdate-Member

Microsoft.SharePoint.Publishing-Namespace