Partager via


ModelBindingContext.ModelType Property

Gets or sets the type of the model.

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

Syntax

'Declaration
Public ReadOnly Property ModelType As Type
    Get
'Usage
Dim instance As ModelBindingContext
Dim value As Type

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

Property Value

Type: System.Type
The type of the model.

See Also

Reference

ModelBindingContext Class

System.Web.Http.ModelBinding Namespace