Adds a web part instance of a specified type to the webparts.
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- webPartId
- Type: System Int32
Web part code name
- position (Optional)
- Type: System Int32
The position of the web part in the target zone
Return Value
Type: WebPartInstanceSee Also