Share via


WebPage.ModelState Property

Gets the state of the model that is associated with a page.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public ReadOnly Property ModelState As ModelStateDictionary 
    Get
'Usage
Dim instance As WebPage 
Dim value As ModelStateDictionary 

value = instance.ModelState
public ModelStateDictionary ModelState { get; }
public:
property ModelStateDictionary^ ModelState {
    ModelStateDictionary^ get ();
}
member ModelState : ModelStateDictionary
function get ModelState () : ModelStateDictionary

Property Value

Type: System.Web.WebPages.Html.ModelStateDictionary
The state of the model.

See Also

Reference

WebPage Class

System.Web.WebPages Namespace