CachedDataAnnotationsModelMetadata CachedDataAnnotationsModelMetadata CachedDataAnnotationsModelMetadata Class

Definition

Provides a container to cache DataAnnotationsModelMetadata.

public class CachedDataAnnotationsModelMetadata : System.Web.Mvc.CachedModelMetadata<System.Web.Mvc.CachedDataAnnotationsMetadataAttributes>
type CachedDataAnnotationsModelMetadata = class
    inherit CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
Public Class CachedDataAnnotationsModelMetadata
Inherits CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)
Inheritance

Constructors

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) 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.

Methods

ComputeConvertEmptyStringToNull() ComputeConvertEmptyStringToNull() 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.

ComputeDataTypeName() ComputeDataTypeName() 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.

ComputeDescription() ComputeDescription() 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.

ComputeDisplayFormatString() ComputeDisplayFormatString() 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.

ComputeDisplayName() ComputeDisplayName() 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.

ComputeEditFormatString() ComputeEditFormatString() 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.

ComputeHasNonDefaultEditFormat() ComputeHasNonDefaultEditFormat() ComputeHasNonDefaultEditFormat()

Gets a value that indicates whether the model uses a non-default edit format.

ComputeHideSurroundingHtml() ComputeHideSurroundingHtml() 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.

ComputeHtmlEncode() ComputeHtmlEncode() ComputeHtmlEncode()
ComputeIsReadOnly() ComputeIsReadOnly() 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.

ComputeIsRequired() ComputeIsRequired() 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.

ComputeNullDisplayText() ComputeNullDisplayText() 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.

ComputeOrder() ComputeOrder() 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.

ComputeShortDisplayName() ComputeShortDisplayName() 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.

ComputeShowForDisplay() ComputeShowForDisplay() 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.

ComputeShowForEdit() ComputeShowForEdit() 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.

ComputeSimpleDisplayText() ComputeSimpleDisplayText() 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.

ComputeTemplateHint() ComputeTemplateHint() 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.

ComputeWatermark() ComputeWatermark() 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.

GetDisplayName() GetDisplayName() GetDisplayName()

Gets the display name for the model.

(Inherited from ModelMetadata)
GetSimpleDisplayText() GetSimpleDisplayText() GetSimpleDisplayText()

Gets or sets the simple display string for the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
GetValidators(ControllerContext) GetValidators(ControllerContext) GetValidators(ControllerContext)

Gets a list of validators for the model.

(Inherited from ModelMetadata)

Properties

AdditionalValues AdditionalValues AdditionalValues

Gets a dictionary that contains additional metadata about the model.

(Inherited from ModelMetadata)
Container Container Container

A reference to the model's container object. Will be non-null if the model represents a property.

(Inherited from ModelMetadata)
ContainerType ContainerType ContainerType

Gets or sets the type of the container for the model.

(Inherited from ModelMetadata)
ConvertEmptyStringToNull ConvertEmptyStringToNull 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>)
DataTypeName DataTypeName DataTypeName

Gets or sets meta information about the data type.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Description Description Description

Gets or sets the description of the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
DisplayFormatString DisplayFormatString DisplayFormatString

Gets or sets the display format string for the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
DisplayName DisplayName DisplayName

Gets or sets the display name of the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
EditFormatString EditFormatString EditFormatString

Gets or sets the edit format string of the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
HideSurroundingHtml HideSurroundingHtml HideSurroundingHtml

Gets or sets a value that indicates whether the model object should be rendered using associated HTML elements.

(Inherited from CachedModelMetadata<TPrototypeCache>)
HtmlEncode HtmlEncode HtmlEncode Inherited from CachedModelMetadata<TPrototypeCache>
IsComplexType IsComplexType IsComplexType

Gets or sets a value that indicates whether the model is a complex type.

(Inherited from ModelMetadata)
IsNullableValueType IsNullableValueType IsNullableValueType

Gets a value that indicates whether the type is nullable.

(Inherited from ModelMetadata)
IsReadOnly IsReadOnly IsReadOnly

Gets or sets a value that indicates whether the model is read-only.

(Inherited from CachedModelMetadata<TPrototypeCache>)
IsRequired IsRequired IsRequired

Gets or sets a value that indicates whether the model is required.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Model Model Model

Gets the value of the model.

(Inherited from ModelMetadata)
ModelType ModelType ModelType

Gets the type of the model.

(Inherited from ModelMetadata)
NullDisplayText NullDisplayText NullDisplayText

Gets or sets the string to display for null values.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Order Order Order

Gets or sets a value that represents order of the current metadata.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Properties Properties Properties

Gets a collection of model metadata objects that describe the properties of the model.

(Inherited from ModelMetadata)
PropertyName PropertyName PropertyName

Gets the property name.

(Inherited from ModelMetadata)
PrototypeCache PrototypeCache PrototypeCache

Gets or sets the prototype cache.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Provider Provider Provider

Gets or sets the provider.

(Inherited from ModelMetadata)
RequestValidationEnabled RequestValidationEnabled RequestValidationEnabled

Gets or sets a value that indicates whether request validation is enabled.

(Inherited from ModelMetadata)
ShortDisplayName ShortDisplayName ShortDisplayName

Gets or sets a short display name.

(Inherited from CachedModelMetadata<TPrototypeCache>)
ShowForDisplay ShowForDisplay 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>)
ShowForEdit ShowForEdit ShowForEdit

Gets or sets a value that indicates whether the model should be displayed in editable views.

(Inherited from CachedModelMetadata<TPrototypeCache>)
SimpleDisplayText SimpleDisplayText SimpleDisplayText

Gets or sets the simple display string for the model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
TemplateHint TemplateHint TemplateHint

Gets or sets a hint that suggests what template to use for this model.

(Inherited from CachedModelMetadata<TPrototypeCache>)
Watermark Watermark Watermark

Gets or sets a value that can be used as a watermark.

(Inherited from CachedModelMetadata<TPrototypeCache>)

Fields

DefaultOrder DefaultOrder DefaultOrder

The default order value, which is 10000.

(Inherited from ModelMetadata)

Applies to