ContentDesigner.SetEditableDesignerRegionContent(EditableDesignerRegion, String) 方法

定义

设置指定 EditableDesignerRegion 对象的内容。Sets the content of the specified EditableDesignerRegion object.

public:
 override void SetEditableDesignerRegionContent(System::Web::UI::Design::EditableDesignerRegion ^ region, System::String ^ content);
public override void SetEditableDesignerRegionContent (System.Web.UI.Design.EditableDesignerRegion region, string content);
override this.SetEditableDesignerRegionContent : System.Web.UI.Design.EditableDesignerRegion * string -> unit
Public Overrides Sub SetEditableDesignerRegionContent (region As EditableDesignerRegion, content As String)

参数

region
EditableDesignerRegion

在其中设置内容的 EditableDesignerRegionThe EditableDesignerRegion in which to set the content.

content
String

EditableDesignerRegion 内容的持久性字符串。The persistence string for the EditableDesignerRegion content.

注解

开发人员通常会将内容保存到表示该区域的控件或属性。Developers will typically persist the content to the control or property that represents the region.

如果 DesignerRegionCollection 中定义 EditableDesignerRegion 元素,并且设计时标记包含区域标识符,则 SetEditableDesignerRegionContent 方法用于设置 DesignerRegionCollection中每个 EditableDesignerRegion 的内容。If EditableDesignerRegion elements are defined in the DesignerRegionCollection and the design-time markup contains region identifiers, the SetEditableDesignerRegionContent method is used to set the content for each EditableDesignerRegion in the DesignerRegionCollection.

适用于

另请参阅