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 (in CMS.PortalEngine.dll) Version: 12.0.0
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