Adds the new web part to the page and returns its instance.
Namespace: CMS.PortalControlsAssembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- webpartId
- Type:
System Int32
The web part id
- zoneId
- Type:
System String
The zone id
- isLayoutZone
- Type:
System Boolean
Indicates whether the zone is a layout zone
- zoneVariantId
- Type:
System Int32
The zone variant id
- position
- Type:
System Int32
The position of the web part in the zone
- templateInstance
- Type: CMS.PortalEngine PageTemplateInstance
The template instance
- row (Optional)
- Type:
System.Data DataRow
The data of the new web part
Return Value
Type: WebPartInstanceSee Also