PageTemplateInstance GetWebPart Method (Guid, Int32, Int32)Kentico 8.0 API Reference
Finds the web part by its GUID.

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

Parameters

instanceGuid
Type: OnlineSystem Guid
Web part instance GUID
zoneVariantId (Optional)
Type: OnlineSystem Int32
The zone variant id. 1..: search just in the specific zone variant 0: search only in the original zones -1: search in all zones and their variants
webPartVariantId (Optional)
Type: OnlineSystem Int32
The web part variant id

Return Value

Type: WebPartInstance
See Also