PageTemplateInstance GetWebPart Method (Guid, Int32, Int32)Kentico 8.1 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.1.5347.20411)

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