Читати англійською Редагувати

Поділитися через


UserControl Constructor

Definition

Initializes a new instance of the UserControl class.

C#
public UserControl();

Remarks

You do not typically create an instance of the UserControl class. To create your own user control, inherit from the UserControl class.

To create a new user control on an ASP.NET page programmatically, use the LoadControl method.

Applies to

Продукт Версії
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also