Partager via


ModelBindingContext.ModelMetadata Property

Gets or sets the model metadata.

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

Syntax

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

value = instance.ModelMetadata

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

Property Value

Type: System.Web.Http.Metadata.ModelMetadata
The model metadata.

See Also

Reference

ModelBindingContext Class

System.Web.Http.ModelBinding Namespace