PageTemplateInstanceGetWebPart Method (Guid, Int32, Int32) |
Finds the web part by its GUID.
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax 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:
WebPartInstanceSee Also