Click or drag to resize
PageTemplateInstanceGetWebPart Method (Guid, Int32, Int32)
Finds the web part by its GUID.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public WebPartInstance GetWebPart(
	Guid instanceGuid,
	int zoneVariantId = 0,
	int webPartVariantId = 0
)

Parameters

instanceGuid
Type: SystemGuid
Web part instance GUID
zoneVariantId (Optional)
Type: SystemInt32
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: SystemInt32
The web part variant id

Return Value

Type: WebPartInstance
See Also