Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetDesignTimeHtml Method (DesignerRegionCollection)
Collapse the table of content
Expand the table of content

ContentPlaceHolderDesigner.GetDesignTimeHtml Method (DesignerRegionCollection)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the HTML that is used to represent the control at design time using the DesignerRegionCollection object.

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

public override string GetDesignTimeHtml(
	DesignerRegionCollection regions
)

Parameters

regions
Type: System.Web.UI.Design.DesignerRegionCollection

The DesignerRegionCollection object containing the regions to use for generating design-time HTML.

Return Value

Type: System.String
The HTML that is used to represent the control at design time.

ExceptionCondition
InvalidOperationException

The root component is not a MasterPage instance.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft