Partager via


ViewDataDictionary.Model Property

Gets or sets the model that is associated with the view data.

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

Syntax

'Declaration
Public Property Model As Object
    Get
    Set
public Object Model { get; set; }
public:
property Object^ Model {
    Object^ get ();
    void set (Object^ value);
}

Property Value

Type: System.Object
The model that is associated with the view data.

Remarks

This property is set in order to support strongly-typed views.

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace