ModelBindingContext.Model Property

.NET Framework (current version)
 

Gets or sets the model.

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

public object Model { get; set; }

Property Value

Type: System.Object

The model.

Exception Condition
InvalidOperationException

Model metadata must be set before accessing this property.

.NET Framework
Available since 4.5
Return to top
Show: