Compartilhar via


WebPartGalleryItemBase.InstantiateFromXml method (XmlDocument)

Cria um WebPart com o especificado XmlDocument.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
Protected Function InstantiateFromXml ( _
    webPartXml As XmlDocument _
) As WebPart
'Uso
Dim webPartXml As XmlDocument
Dim returnValue As WebPart

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

Parâmetros

Valor retornado

Type: System.Web.UI.WebControls.WebParts.WebPart
A Web Part instanciado.

Comentários

Este método cria e retorna um WebPart usando o documento XML da Web Part especificado.

Ver também

Referência

WebPartGalleryItemBase class

WebPartGalleryItemBase members

InstantiateFromXml overload

Microsoft.SharePoint.WebPartPages namespace