Share via


CachedDataAnnotationsModelMetadata Class

Provides a container to cache DataAnnotationsModelMetadata.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ModelMetadata
    System.Web.Mvc.CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
      System.Web.Mvc.CachedDataAnnotationsModelMetadata

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Class CachedDataAnnotationsModelMetadata _
    Inherits CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)
'Usage
Dim instance As CachedDataAnnotationsModelMetadata
public class CachedDataAnnotationsModelMetadata : CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
public ref class CachedDataAnnotationsModelMetadata : public CachedModelMetadata<CachedDataAnnotationsMetadataAttributes^>
type CachedDataAnnotationsModelMetadata =  
    class 
        inherit CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
    end
public class CachedDataAnnotationsModelMetadata extends CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>

The CachedDataAnnotationsModelMetadata type exposes the following members.

Constructors

  Name Description
Public method CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.
Public method CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the provider, container type, model type, property name and attributes.

Top

Properties

  Name Description
Public property AdditionalValues Gets a dictionary that contains additional metadata about the model. (Inherited from ModelMetadata.)
Public property ContainerType Gets or sets the type of the container for the model. (Inherited from ModelMetadata.)
Public property 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<TPrototypeCache>.)
Public property DataTypeName Gets or sets meta information about the data type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Description Gets or sets the description of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property DisplayFormatString Gets or sets the display format string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property DisplayName Gets or sets the display name of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property EditFormatString Gets or sets the edit format string of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property HideSurroundingHtml Gets or sets a value that indicates whether the model object should be rendered using associated HTML elements. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property IsComplexType Gets or sets a value that indicates whether the model is a complex type. (Inherited from ModelMetadata.)
Public property IsNullableValueType Gets a value that indicates whether the type is nullable. (Inherited from ModelMetadata.)
Public property IsReadOnly Gets or sets a value that indicates whether the model is read-only. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property IsRequired Gets or sets a value that indicates whether the model is required. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Model Gets the value of the model. (Inherited from ModelMetadata.)
Public property ModelType Gets the type of the model. (Inherited from ModelMetadata.)
Public property NullDisplayText Gets or sets the string to display for null values. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Order Gets or sets a value that represents order of the current metadata. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Properties Gets a collection of model metadata objects that describe the properties of the model. (Inherited from ModelMetadata.)
Public property PropertyName Gets the property name. (Inherited from ModelMetadata.)
Protected property PrototypeCache Gets or sets the prototype cache. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected property Provider Gets or sets the provider. (Inherited from ModelMetadata.)
Public property RequestValidationEnabled Gets or sets a value that indicates whether request validation is enabled. (Inherited from ModelMetadata.)
Public property ShortDisplayName Gets or sets a short display name. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property 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<TPrototypeCache>.)
Public property ShowForEdit Gets or sets a value that indicates whether the model should be displayed in editable views. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property SimpleDisplayText Gets or sets the simple display string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property TemplateHint Gets or sets a hint that suggests what template to use for this model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Watermark Gets or sets a value that can be used as a watermark. (Inherited from CachedModelMetadata<TPrototypeCache>.)

Top

Methods

  Name Description
Protected method 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<TPrototypeCache>.ComputeConvertEmptyStringToNull().)
Protected method 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<TPrototypeCache>.ComputeDataTypeName().)
Protected method 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<TPrototypeCache>.ComputeDescription().)
Protected method 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<TPrototypeCache>.ComputeDisplayFormatString().)
Protected method 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<TPrototypeCache>.ComputeDisplayName().)
Protected method 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<TPrototypeCache>.ComputeEditFormatString().)
Protected method 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<TPrototypeCache>.ComputeHideSurroundingHtml().)
Protected method 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<TPrototypeCache>.ComputeIsReadOnly().)
Protected method 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<TPrototypeCache>.ComputeIsRequired().)
Protected method 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<TPrototypeCache>.ComputeNullDisplayText().)
Protected method 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<TPrototypeCache>.ComputeOrder().)
Protected method 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<TPrototypeCache>.ComputeShortDisplayName().)
Protected method 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<TPrototypeCache>.ComputeShowForDisplay().)
Protected method 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<TPrototypeCache>.ComputeShowForEdit().)
Protected method 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<TPrototypeCache>.ComputeSimpleDisplayText().)
Protected method 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<TPrototypeCache>.ComputeTemplateHint().)
Protected method 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<TPrototypeCache>.ComputeWatermark().)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDisplayName Gets the display name for the model. (Inherited from ModelMetadata.)
Public method GetHashCode (Inherited from Object.)
Protected method GetSimpleDisplayText Gets or sets the simple display string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public method GetType (Inherited from Object.)
Public method GetValidators Gets a list of validators for the model. (Inherited from ModelMetadata.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Mvc Namespace