WebPartGalleryXmlItemBase.Instantiate Method

Instantiates the WebPart represented by this item.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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