WebPartGalleryItemBase.InstantiateFromXml - Méthode (String)

Instancie un WebPart avec une chaîne qui contient le code XML.

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

Syntaxe

'Déclaration
Protected Function InstantiateFromXml ( _
    webPartXml As String _
) As WebPart
'Utilisation
Dim webPartXml As String
Dim returnValue As WebPart

returnValue = Me.InstantiateFromXml(webPartXml)
protected WebPart InstantiateFromXml(
    string webPartXml
)

Paramètres

  • webPartXml
    Type : System.String

    Chaîne qui contient le XML du composant WebPart.

Valeur renvoyée

Type : System.Web.UI.WebControls.WebParts.WebPart
Le composant WebPart instancié.

Remarques

Cette méthode instancie et retourne un WebPart à l'aide de la chaîne XML du composant WebPart spécifiée.

Voir aussi

Référence

WebPartGalleryItemBase classe

WebPartGalleryItemBase - Membres

InstantiateFromXml - Surcharge

Microsoft.SharePoint.WebPartPages - Espace de noms