ModelMetadata Class

Inheritance Hierarchy


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


Public Class ModelMetadata
Dim instance As ModelMetadata
public class ModelMetadata
public ref class ModelMetadata
type ModelMetadata =  class end
public class ModelMetadata

The ModelMetadata type exposes the following members.


  Name Description
Public method ModelMetadata Initializes a new instance of the ModelMetadata class.



  Name Description
Public property AdditionalValues Gets a dictionary that contains additional metadata about the model.
Public property ContainerType Gets or sets the type of the container for the model.
Public property ConvertEmptyStringToNull Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to null.
Public property Description Gets or sets the description of the model.
Public property IsComplexType Gets or sets a value that indicates whether the model is a complex type.
Public property IsNullableValueType Gets a value that indicates whether the type is nullable.
Public property IsReadOnly Gets or sets a value that indicates whether the model is read-only.
Public property Model Gets the value of the model.
Public property ModelType Gets the type of the model.
Public property Properties Gets a collection of model metadata objects that describe the properties of the model.
Public property PropertyName Gets the property name.
Protected property Provider Gets or sets the provider.



  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDisplayName Gets the display name for the model.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValidators Gets a list of validators for the model.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


System.Web.Http.Metadata Namespace