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
- webPart
Type : System.Web.UI.WebControls.WebParts.WebPart
- zoneId
Type : System.String
- zoneIndex
Type : System.Int32
Voir aussi
Référence
SPLimitedWebPartManager classe