BaseDataBoundControlDesigner.GetEmptyDesignTimeHtml 方法

定义

如果控件为空,或者无法检索数据源,则提供在设计时用来呈现控件的标记。

protected:
 override System::String ^ GetEmptyDesignTimeHtml();
protected override string GetEmptyDesignTimeHtml ();
override this.GetEmptyDesignTimeHtml : unit -> string
Protected Overrides Function GetEmptyDesignTimeHtml () As String

返回

String

用于在设计时使用空的数据源来呈现该控件的标记。

注解

BaseDataBoundControlDesigner 呈现控件之前,类会在设计时检索用于绑定的示例数据。 空设计时控件呈现为一个占位符,其中包含类型名称和控件名称。

适用于

另请参阅