MobileControl.CreateDefaultTemplatedUI(Boolean) 方法

定义

由设备适配器调用,以创建控件的默认模板化用户界面 (UI)。Called by device adapters to create the default templated user interface (UI) for the control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual void CreateDefaultTemplatedUI(bool doDataBind);
public virtual void CreateDefaultTemplatedUI (bool doDataBind);
abstract member CreateDefaultTemplatedUI : bool -> unit
override this.CreateDefaultTemplatedUI : bool -> unit
Public Overridable Sub CreateDefaultTemplatedUI (doDataBind As Boolean)

参数

doDataBind
Boolean

如果实例化模板必须绑定到可用数据(通常在第一次请求时发生),则设置为 trueSet to true if the instantiated templates must bind to available data (which usually happens on the first request). 如果模板不能绑定到数据,而需要根据视图状态进行填充(通常在后续回发时发生),则设置为 falseSet to false if the templates must not bind to data, and instead rely on view state to fill them in (which usually happens on subsequent postbacks).

适用于

另请参阅