ViewStateAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.