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
webPartXml
Type: System.Xml.XmlDocumentUm documento XML da Web Part.
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.