Modifica

Condividi tramite


ControlAttribute Constructors

Definition

Initializes a new instance of the ControlAttribute class.

Overloads

ControlAttribute()

Initializes a new instance of the ControlAttribute class.

ControlAttribute(String)

Initializes a new instance of the ControlAttribute class using the specified control ID.

ControlAttribute(String, String)

Initializes a new instance of the ControlAttribute class using the specified control ID and property name.

Remarks

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

ControlAttribute()

Initializes a new instance of the ControlAttribute class.

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

Remarks

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

Applies to

ControlAttribute(String)

Initializes a new instance of the ControlAttribute class using the specified control ID.

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)

Parameters

controlID
String

The control ID.

Remarks

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

Applies to

ControlAttribute(String, String)

Initializes a new instance of the ControlAttribute class using the specified control ID and property name.

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)

Parameters

controlID
String

The control ID.

propertyName
String

The property name.

Remarks

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

Applies to