Click or drag to resize
WebPartZoneInstance.GetWebPart Method (String, Boolean)
Returns the web part instance with specified ID or null when not found.

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

Parameters

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

Return Value

Type: WebPartInstance
See Also