WebPartZoneInstance GetWebPart Method (String, Boolean)Kentico 8.1 API Reference
Returns the web part instance with specified ID or null when not found.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

webPartId
Type: OnlineSystem String
Web part ID to get
searchInVariants (Optional)
Type: OnlineSystem Boolean
Indicates whether to search in the zone variants as well.

Return Value

Type: WebPartInstance
See Also