Partager via


ModelBindingContext.ModelName Property

Gets or sets the name of the model.

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

Syntax

'Declaration
Public Property ModelName As String
    Get
    Set
'Usage
Dim instance As ModelBindingContext
Dim value As String

value = instance.ModelName

instance.ModelName = value
public string ModelName { get; set; }
public:
property String^ ModelName {
    String^ get ();
    void set (String^ value);
}
member ModelName : string with get, set
function get ModelName () : String
function set ModelName (value : String)

Property Value

Type: System.String
The name of the model.

See Also

Reference

ModelBindingContext Class

System.Web.Http.ModelBinding Namespace