WebPartGalleryItemBase.InstantiateFromXml 方法 (XmlDocument)

实例化与指定XmlDocumentWebPart

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Function InstantiateFromXml ( _
    webPartXml As XmlDocument _
) As WebPart
用法
Dim webPartXml As XmlDocument
Dim returnValue As WebPart

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

参数

返回值

类型:System.Web.UI.WebControls.WebParts.WebPart
实例化的 Web 部件。

备注

此方法实例化并返回WebPart使用指定的 Web 部件 XML 文档。

另请参阅

引用

WebPartGalleryItemBase 类

WebPartGalleryItemBase 成员

InstantiateFromXml 重载

Microsoft.SharePoint.WebPartPages 命名空间