Прочетете на английски Редактиране

Споделяне чрез


SessionAttribute Constructors

Definition

Initializes a new instance of the SessionAttribute class.

Overloads

SessionAttribute()

Initializes a new instance of the SessionAttribute class.

SessionAttribute(String)

Initializes a new instance of the SessionAttribute class, using the session state name.

Remarks

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

SessionAttribute()

Initializes a new instance of the SessionAttribute class.

C#
public SessionAttribute();

Remarks

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

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

SessionAttribute(String)

Initializes a new instance of the SessionAttribute class, using the session state name.

C#
public SessionAttribute(string name);

Parameters

name
String

The name.

Remarks

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

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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