Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CachedDataAnnotationsModelMetadata Class

Provides a container to cache DataAnnotationsModelMetadata.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public class CachedDataAnnotationsModelMetadata : CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>

The CachedDataAnnotationsModelMetadata type exposes the following members.

  NameDescription
Public methodCachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.
Public methodCachedDataAnnotationsModelMetadata(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
  NameDescription
Public propertyAdditionalValuesGets a dictionary that contains additional metadata about the model. (Inherited from ModelMetadata.)
Public propertyContainerTypeGets or sets the type of the container for the model. (Inherited from ModelMetadata.)
Public propertyConvertEmptyStringToNullGets 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 propertyDataTypeNameGets or sets meta information about the data type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyDescriptionGets or sets the description of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyDisplayFormatStringGets or sets the display format string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyDisplayNameGets or sets the display name of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyEditFormatStringGets or sets the edit format string of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyHideSurroundingHtmlGets or sets a value that indicates whether the model object should be rendered using associated HTML elements. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyIsComplexTypeGets or sets a value that indicates whether the model is a complex type. (Inherited from ModelMetadata.)
Public propertyIsNullableValueTypeGets a value that indicates whether the type is nullable. (Inherited from ModelMetadata.)
Public propertyIsReadOnlyGets or sets a value that indicates whether the model is read-only. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyIsRequiredGets or sets a value that indicates whether the model is required. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyModelGets the value of the model. (Inherited from ModelMetadata.)
Public propertyModelTypeGets the type of the model. (Inherited from ModelMetadata.)
Public propertyNullDisplayTextGets or sets the string to display for null values. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyOrderGets or sets a value that represents order of the current metadata. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyPropertiesGets a collection of model metadata objects that describe the properties of the model. (Inherited from ModelMetadata.)
Public propertyPropertyNameGets the property name. (Inherited from ModelMetadata.)
Protected propertyPrototypeCacheGets or sets the prototype cache. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected propertyProviderGets or sets the provider. (Inherited from ModelMetadata.)
Public propertyRequestValidationEnabledGets or sets a value that indicates whether request validation is enabled. (Inherited from ModelMetadata.)
Public propertyShortDisplayNameGets or sets a short display name. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyShowForDisplayGets 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 propertyShowForEditGets or sets a value that indicates whether the model should be displayed in editable views. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertySimpleDisplayTextGets or sets the simple display string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyTemplateHintGets or sets a hint that suggests what template to use for this model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyWatermarkGets or sets a value that can be used as a watermark. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Top
  NameDescription
Protected methodComputeConvertEmptyStringToNullGets 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 methodComputeDataTypeNameGets 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 methodComputeDescriptionGets 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 methodComputeDisplayFormatStringGets 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 methodComputeDisplayNameGets 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 methodComputeEditFormatStringGets 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 methodComputeHideSurroundingHtmlGets 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 methodComputeIsReadOnlyGets 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 methodComputeIsRequiredGets 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 methodComputeNullDisplayTextGets 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 methodComputeOrderGets 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 methodComputeShortDisplayNameGets 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 methodComputeShowForDisplayGets 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 methodComputeShowForEditGets 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 methodComputeSimpleDisplayTextGets 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 methodComputeTemplateHintGets 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 methodComputeWatermarkGets 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 methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDisplayNameGets the display name for the model. (Inherited from ModelMetadata.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetSimpleDisplayTextGets or sets the simple display string for the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public methodGetType (Inherited from Object.)
Public methodGetValidatorsGets a list of validators for the model. (Inherited from ModelMetadata.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.