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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntax
C#
public WebPartInstance GetWebPart(
	string webPartControlId,
	bool searchInVariants = false
)

Parameters

webPartControlId
Type: SystemString
Web part control ID to retrieve
searchInVariants (Optional)
Type: SystemBoolean
Indicates whether to search in the zone variants as well.

Return Value

Type: WebPartInstance
See Also