Edit

Bagikan melalui


ViewStateAttribute Constructors

Definition

Initializes a new instance of the ViewStateAttribute class.

Overloads

ViewStateAttribute()

Initializes a new instance of the ViewStateAttribute class.

ViewStateAttribute(String)

Initializes a new instance of the ViewStateAttribute class using the specified view state key.

Remarks

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

ViewStateAttribute()

Initializes a new instance of the ViewStateAttribute class.

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

Remarks

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

Applies to

ViewStateAttribute(String)

Initializes a new instance of the ViewStateAttribute class using the specified view state key.

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

Parameters

key
String

The key.

Remarks

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

Applies to