WebPartGalleryItemBase.InstantiateFromXml method (String)
具現化的字串,包含 XML 的WebPart 。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Function InstantiateFromXml ( _
webPartXml As String _
) As WebPart
'用途
Dim webPartXml As String
Dim returnValue As WebPart
returnValue = Me.InstantiateFromXml(webPartXml)
protected WebPart InstantiateFromXml(
string webPartXml
)
參數
webPartXml
Type: System.String字串,包含 Web 組件的 XML。
傳回值
Type: System.Web.UI.WebControls.WebParts.WebPart
具現化的網頁組件。
備註
這個方法會具現化,並使用指定的 Web 組件的 XML 字串傳回WebPart 。