IWebPartVariationUpdate.Update - Méthode
Met à jour les propriétés d'un contrôle WebPart qui dépendent de l'emplacement de la page dans la hiérarchie du serveur.
Espace de noms : Microsoft.SharePoint.Publishing
Assembly : Microsoft.SharePoint.Publishing (dans Microsoft.SharePoint.Publishing.dll)
Syntaxe
'Déclaration
Sub Update ( _
ownerWeb As PublishingWeb _
)
'Utilisation
Dim instance As IWebPartVariationUpdate
Dim ownerWeb As PublishingWeb
instance.Update(ownerWeb)
void Update(
PublishingWeb ownerWeb
)
Paramètres
ownerWeb
Type : Microsoft.SharePoint.Publishing.PublishingWebPropriétaire de la PublishingWeb
Exemples
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)
Voir aussi
Référence
IWebPartVariationUpdate interface