Click or drag to resize
PageTemplateInstanceGetWebPart Method (Guid, String)
Returns the web part with specified GUID or ID or null if not found.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public WebPartInstance GetWebPart(
	Guid webPartGuid,
	string webPartControlId
)

Parameters

webPartGuid
Type: SystemGuid
Web part GUID
webPartControlId
Type: SystemString
Web part control ID to retrieve

Return Value

Type: WebPartInstance
See Also