DataAnnotationsModelMetadata Class
Provides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, and for the DataAnnotationsModelValidator class for a data model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The DataAnnotationsModelMetadata type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DataAnnotationsModelMetadata | Initializes a new instance of the DataAnnotationsModelMetadataProvider class. |
| Name | Description | |
|---|---|---|
![]() | AdditionalValues | Gets a dictionary that contains additional metadata about the model. (Inherited from ModelMetadata.) |
![]() | ContainerType | Gets or sets the type of the container for the model. (Inherited from ModelMetadata.) |
![]() | ConvertEmptyStringToNull | Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to Nothing. (Inherited from ModelMetadata.) |
![]() | DataTypeName | Gets or sets meta information about the data type. (Inherited from ModelMetadata.) |
![]() | Description | Gets or sets the description of the model. (Inherited from ModelMetadata.) |
![]() | DisplayFormatString | Gets or sets the display format string for the model. (Inherited from ModelMetadata.) |
![]() | DisplayName | Gets or sets the display name of the model. (Inherited from ModelMetadata.) |
![]() | EditFormatString | Gets or sets the edit format string of the model. (Inherited from ModelMetadata.) |
![]() | HideSurroundingHtml | Gets or sets a value that indicates whether the model object should be rendered using associated HTML elements. (Inherited from ModelMetadata.) |
![]() | IsComplexType | Gets or sets a value that indicates whether the model is a complex type. (Inherited from ModelMetadata.) |
![]() | IsNullableValueType | Gets a value that indicates whether the type is nullable. (Inherited from ModelMetadata.) |
![]() | IsReadOnly | Gets or sets a value that indicates whether the model is read-only. (Inherited from ModelMetadata.) |
![]() | IsRequired | Gets or sets a value that indicates whether the model is required. (Inherited from ModelMetadata.) |
![]() | Model | Gets the value of the model. (Inherited from ModelMetadata.) |
![]() | ModelType | Gets the type of the model. (Inherited from ModelMetadata.) |
![]() | NullDisplayText | Gets or sets the string to display for null values. (Inherited from ModelMetadata.) |
![]() | Order | Gets or sets a value that represents order of the current metadata. (Inherited from ModelMetadata.) |
![]() | Properties | Gets a collection of model metadata objects that describe the properties of the model. (Inherited from ModelMetadata.) |
![]() | PropertyName | Gets the property name. (Inherited from ModelMetadata.) |
![]() | Provider | Gets or sets the provider. (Inherited from ModelMetadata.) |
![]() | RequestValidationEnabled | Gets or sets a value that indicates whether request validation is enabled. (Inherited from ModelMetadata.) |
![]() | ShortDisplayName | Gets or sets a short display name. (Inherited from ModelMetadata.) |
![]() | ShowForDisplay | Gets or sets a value that indicates whether the property should be displayed in read-only views such as list and detail views. (Inherited from ModelMetadata.) |
![]() | ShowForEdit | Gets or sets a value that indicates whether the model should be displayed in editable views. (Inherited from ModelMetadata.) |
![]() | SimpleDisplayText | Gets or sets the simple display string for the model. (Inherited from ModelMetadata.) |
![]() | TemplateHint | Gets or sets a hint that suggests what template to use for this model. (Inherited from ModelMetadata.) |
![]() | Watermark | Gets or sets a value that can be used as a watermark. (Inherited from ModelMetadata.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetDisplayName | Gets the display name for the model. (Inherited from ModelMetadata.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetSimpleDisplayText | Returns simple text for the model data. (Overrides ModelMetadata.GetSimpleDisplayText.) |
![]() | GetType | (Inherited from Object.) |
![]() | GetValidators | Gets a list of validators for the model. (Inherited from ModelMetadata.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
DataAnnotationsModelMetadataProvider is the default metadata provider for MVC.
Show:
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)