WebPartGalleryXmlItemBase.Instantiate method

Instantiates the WebPart represented by this item.

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

Syntax

'Declaration
Public Overrides Function Instantiate As WebPart
'Usage
Dim instance As WebPartGalleryXmlItemBase
Dim returnValue As WebPart

returnValue = instance.Instantiate()
public override WebPart Instantiate()

Return value

Type: System.Web.UI.WebControls.WebParts.WebPart
The instantiated Web Part.

Remarks

This override instantiates and returns the WebPart described by the Web Part XML document passed to the constructor.

See also

Reference

WebPartGalleryXmlItemBase class

WebPartGalleryXmlItemBase members

Microsoft.SharePoint.WebPartPages namespace