ControlAttribute 构造函数

定义

初始化 ControlAttribute 类的新实例。

重载

名称 说明
ControlAttribute()

初始化 ControlAttribute 类的新实例。

ControlAttribute(String)

使用指定的控件 ID 初始化类的新实例 ControlAttribute

ControlAttribute(String, String)

使用指定的控件 ID 和属性名称初始化类的新实例 ControlAttribute

注解

有关将模型绑定与 Web 窗体配合使用的教程系列,请参阅 模型绑定和 Web 窗体

ControlAttribute()

初始化 ControlAttribute 类的新实例。

public:
 ControlAttribute();
public ControlAttribute();
Public Sub New ()

注解

有关将模型绑定与 Web 窗体配合使用的教程系列,请参阅 模型绑定和 Web 窗体

适用于

ControlAttribute(String)

使用指定的控件 ID 初始化类的新实例 ControlAttribute

public:
 ControlAttribute(System::String ^ controlID);
public ControlAttribute(string controlID);
new System.Web.ModelBinding.ControlAttribute : string -> System.Web.ModelBinding.ControlAttribute
Public Sub New (controlID As String)

参数

controlID
String

控件 ID。

注解

有关将模型绑定与 Web 窗体配合使用的教程系列,请参阅 模型绑定和 Web 窗体

适用于

ControlAttribute(String, String)

使用指定的控件 ID 和属性名称初始化类的新实例 ControlAttribute

public:
 ControlAttribute(System::String ^ controlID, System::String ^ propertyName);
public ControlAttribute(string controlID, string propertyName);
new System.Web.ModelBinding.ControlAttribute : string * string -> System.Web.ModelBinding.ControlAttribute
Public Sub New (controlID As String, propertyName As String)

参数

controlID
String

控件 ID。

propertyName
String

属性名称。

注解

有关将模型绑定与 Web 窗体配合使用的教程系列,请参阅 模型绑定和 Web 窗体

适用于