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.1.5347.20411)
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