Partager via


SPLimitedWebPartManager.AddWebPart - Méthode

Ajoute un composant WebPart dynamique à la page de composants WebPart.

Espace de noms :  Microsoft.SharePoint.WebPartPages
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Sub AddWebPart ( _
    webPart As WebPart, _
    zoneId As String, _
    zoneIndex As Integer _
)
'Utilisation
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim zoneId As String
Dim zoneIndex As Integer

instance.AddWebPart(webPart, zoneId, zoneIndex)
public void AddWebPart(
    WebPart webPart,
    string zoneId,
    int zoneIndex
)

Paramètres

Voir aussi

Référence

SPLimitedWebPartManager classe

SPLimitedWebPartManager - Membres

Microsoft.SharePoint.WebPartPages - Espace de noms