WebPartGalleryItemBase.InstantiateFromXml method (XmlDocument)
使用指定的XmlDocument的WebPart會具現化。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
)
參數
webPartXml
Type: System.Xml.XmlDocumentWeb 組件的 XML 文件。
傳回值
Type: System.Web.UI.WebControls.WebParts.WebPart
具現化的網頁組件。
備註
這個方法會具現化,並使用指定的 Web 組件的 XML 文件傳回WebPart 。