CachedDataAnnotationsModelMetadata Class
Provides a container to cache DataAnnotationsModelMetadata.
System.Object
System.Web.Mvc.ModelMetadata
System.Web.Mvc.CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)
System.Web.Mvc.CachedDataAnnotationsModelMetadata
System.Web.Mvc.ModelMetadata
System.Web.Mvc.CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)
System.Web.Mvc.CachedDataAnnotationsModelMetadata
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The CachedDataAnnotationsModelMetadata type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func(Of Object)) | Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor. |
![]() | CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable(Of Attribute)) | Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the provider, container type, model type, property name and attributes. |
| 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 cached value that indicates whether empty strings that are posted back in forms should be converted to null. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | DataTypeName | Gets or sets meta information about the data type. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | Description | Gets or sets the description of the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | DisplayFormatString | Gets or sets the display format string for the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | DisplayName | Gets or sets the display name of the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | EditFormatString | Gets or sets the edit format string of the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | HideSurroundingHtml | Gets or sets a value that indicates whether the model object should be rendered using associated HTML elements. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | 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 CachedModelMetadata(Of TPrototypeCache).) |
![]() | IsRequired | Gets or sets a value that indicates whether the model is required. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | 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 CachedModelMetadata(Of TPrototypeCache).) |
![]() | Order | Gets or sets a value that represents order of the current metadata. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | 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.) |
![]() | PrototypeCache | Gets or sets the prototype cache. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | 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 CachedModelMetadata(Of TPrototypeCache).) |
![]() | 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 CachedModelMetadata(Of TPrototypeCache).) |
![]() | ShowForEdit | Gets or sets a value that indicates whether the model should be displayed in editable views. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | SimpleDisplayText | Gets or sets the simple display string for the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | TemplateHint | Gets or sets a hint that suggests what template to use for this model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | Watermark | Gets or sets a value that can be used as a watermark. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
| Name | Description | |
|---|---|---|
![]() | ComputeConvertEmptyStringToNull | Gets a value that indicates whether empty strings that are posted back in forms should be converted to Nothing.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeConvertEmptyStringToNull.) |
![]() | ComputeDataTypeName | Gets meta information about the data type.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeDataTypeName.) |
![]() | ComputeDescription | Gets the description of the model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeDescription.) |
![]() | ComputeDisplayFormatString | Gets the display format string for the model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeDisplayFormatString.) |
![]() | ComputeDisplayName | Gets the display name of the model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeDisplayName.) |
![]() | ComputeEditFormatString | Gets the edit format string of the model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeEditFormatString.) |
![]() | ComputeHideSurroundingHtml | Gets a value that indicates whether the model object should be rendered using associated HTML elements.Gets a value that indicates whether the model object should be rendered using associated HTML elements.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeHideSurroundingHtml.) |
![]() | ComputeIsReadOnly | Gets a value that indicates whether the model is read-only.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeIsReadOnly.) |
![]() | ComputeIsRequired | Gets a value that indicates whether the model is required.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeIsRequired.) |
![]() | ComputeNullDisplayText | Gets the string to display for null values.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeNullDisplayText.) |
![]() | ComputeOrder | Gets a value that represents order of the current metadata.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeOrder.) |
![]() | ComputeShortDisplayName | Gets a short display name.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeShortDisplayName.) |
![]() | ComputeShowForDisplay | Gets a value that indicates whether the property should be displayed in read-only views such as list and detail views.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeShowForDisplay.) |
![]() | ComputeShowForEdit | Gets or sets a value that indicates whether the model should be displayed in editable views.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeShowForEdit.) |
![]() | ComputeSimpleDisplayText | Gets the simple display string for the model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeSimpleDisplayText.) |
![]() | ComputeTemplateHint | Gets a hint that suggests what template to use for this model.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeTemplateHint.) |
![]() | ComputeWatermark | Gets a value that can be used as a watermark.If the value is cached, the cashed value is returned; otherwise the value is retrieved from the model metadata and stored in the cache. (Overrides CachedModelMetadata(Of TPrototypeCache).ComputeWatermark.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetDisplayName | Gets the display name for the model. (Inherited from ModelMetadata.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetSimpleDisplayText | Gets or sets the simple display string for the model. (Inherited from CachedModelMetadata(Of TPrototypeCache).) |
![]() | GetType | (Inherited from Object.) |
![]() | GetValidators | Gets a list of validators for the model. (Inherited from ModelMetadata.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
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)