Compartilhar via


ModelBindingContext.ModelType Property

Gets or sets the type of the model.

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

Syntax

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

Property Value

Type: System.Type
The type of the model.

See Also

Reference

ModelBindingContext Class

System.Web.Mvc Namespace