Click or drag to resize
WebPartZoneInstanceGetWebPart Method (String, Boolean)
Returns the web part instance with specified ID or null when 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(
	string webPartId,
	bool searchInVariants = false
)

Parameters

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

Return Value

Type: WebPartInstance
See Also