CachedModelMetadata<TPrototypeCache> CachedModelMetadata<TPrototypeCache> CachedModelMetadata<TPrototypeCache> Class

Definition

Provides a container for cached metadata.

public abstract class CachedModelMetadata<TPrototypeCache> : System.Web.Mvc.ModelMetadata
type CachedModelMetadata<'PrototypeCache> = class
    inherit ModelMetadata
Public MustInherit Class CachedModelMetadata(Of TPrototypeCache)
Inherits ModelMetadata

Type Parameters

TPrototypeCache

he type of the container.

Inheritance
CachedModelMetadata<TPrototypeCache>CachedModelMetadata<TPrototypeCache>CachedModelMetadata<TPrototypeCache>
Derived

Constructors

CachedModelMetadata<TPrototypeCache>(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, TPrototypeCache) CachedModelMetadata<TPrototypeCache>(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, TPrototypeCache) CachedModelMetadata<TPrototypeCache>(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, TPrototypeCache)

Constructor for creating real instances of the metadata class based on a prototype.

CachedModelMetadata<TPrototypeCache>(CachedModelMetadata<TPrototypeCache>, Func<Object>) CachedModelMetadata<TPrototypeCache>(CachedModelMetadata<TPrototypeCache>, Func<Object>) CachedModelMetadata<TPrototypeCache>(CachedModelMetadata<TPrototypeCache>, Func<Object>)

Constructor for creating the prototype instances of the metadata class.

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.

DataTypeName DataTypeName DataTypeName

Gets or sets meta information about the data type.

Description Description Description

Gets or sets the description of the model.

DisplayFormatString DisplayFormatString DisplayFormatString

Gets or sets the display format string for the model.

DisplayName DisplayName DisplayName

Gets or sets the display name of the model.

EditFormatString EditFormatString EditFormatString

Gets or sets the edit format string of the model.

HideSurroundingHtml HideSurroundingHtml HideSurroundingHtml

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

HtmlEncode HtmlEncode HtmlEncode
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.

IsRequired IsRequired IsRequired

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

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.

Order Order Order

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

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.

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.

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.

ShowForEdit ShowForEdit ShowForEdit

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

SimpleDisplayText SimpleDisplayText SimpleDisplayText

Gets or sets the simple display string for the model.

TemplateHint TemplateHint TemplateHint

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

Watermark Watermark Watermark

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

Methods

ComputeConvertEmptyStringToNull() ComputeConvertEmptyStringToNull() ComputeConvertEmptyStringToNull()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether empty strings that are posted back in forms should be converted to null.

ComputeDataTypeName() ComputeDataTypeName() ComputeDataTypeName()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets meta information about the data type.

ComputeDescription() ComputeDescription() ComputeDescription()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the description of the model.

ComputeDisplayFormatString() ComputeDisplayFormatString() ComputeDisplayFormatString()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the display format string for the model.

ComputeDisplayName() ComputeDisplayName() ComputeDisplayName()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the display name of the model.

ComputeEditFormatString() ComputeEditFormatString() ComputeEditFormatString()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the edit format string of the model.

ComputeHasNonDefaultEditFormat() ComputeHasNonDefaultEditFormat() ComputeHasNonDefaultEditFormat()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.

ComputeHideSurroundingHtml() ComputeHideSurroundingHtml() ComputeHideSurroundingHtml()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether the model object should be rendered using associated HTML elements.

ComputeHtmlEncode() ComputeHtmlEncode() ComputeHtmlEncode()
ComputeIsReadOnly() ComputeIsReadOnly() ComputeIsReadOnly()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether the model is read-only.

ComputeIsRequired() ComputeIsRequired() ComputeIsRequired()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether the model is required.

ComputeNullDisplayText() ComputeNullDisplayText() ComputeNullDisplayText()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the cached string to display for null values.

ComputeOrder() ComputeOrder() ComputeOrder()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that represents order of the current metadata.

ComputeShortDisplayName() ComputeShortDisplayName() ComputeShortDisplayName()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a short display name.

ComputeShowForDisplay() ComputeShowForDisplay() ComputeShowForDisplay()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether the property should be displayed in read-only views such as list and detail views.

ComputeShowForEdit() ComputeShowForEdit() ComputeShowForEdit()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that indicates whether the model should be displayed in editable views.

ComputeSimpleDisplayText() ComputeSimpleDisplayText() ComputeSimpleDisplayText()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets the cached simple display string for the model.

ComputeTemplateHint() ComputeTemplateHint() ComputeTemplateHint()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached hint that suggests what template to use for this model.

ComputeWatermark() ComputeWatermark() ComputeWatermark()

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.Gets or sets a cached value that can be used as a watermark.

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.

GetValidators(ControllerContext) GetValidators(ControllerContext) GetValidators(ControllerContext)

Gets a list of validators for the model.

(Inherited from ModelMetadata)

Fields

DefaultOrder DefaultOrder DefaultOrder

The default order value, which is 10000.

(Inherited from ModelMetadata)

Applies to