WebPartGalleryItemBase.Instantiate Method
When overridden in a derived class, 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 MustOverride Function Instantiate As WebPart
'Usage
Dim instance As WebPartGalleryItemBase
Dim returnValue As WebPart
returnValue = instance.Instantiate()
public abstract WebPart Instantiate()
Return Value
Type: System.Web.UI.WebControls.WebParts.WebPart
The instantiated WebPart.
Remarks
This method must not return a null reference (Nothing in Visual Basic), but may throw an exception if the WebPart cannot be instantiated.
This abstract method must be implemented by the derived class.