CachedDataAnnotationsModelMetadata Class

 

Provides a container to cache DataAnnotationsModelMetadata.

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

Inheritance Hierarchy

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

Syntax

public class CachedDataAnnotationsModelMetadata : CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
public ref class CachedDataAnnotationsModelMetadata : CachedModelMetadata<CachedDataAnnotationsMetadataAttributes^>
type CachedDataAnnotationsModelMetadata = 
    class
        inherit CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
    end
Public Class CachedDataAnnotationsModelMetadata
    Inherits CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)

Constructors

Name Description
System_CAPS_pubmethod CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

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

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

Properties

Name Description
System_CAPS_pubproperty AdditionalValues

Gets a dictionary that contains additional metadata about the model.(Inherited from ModelMetadata.)

System_CAPS_pubproperty Container

A reference to the model's container object. Will be non-null if the model represents a property.(Inherited from ModelMetadata.)

System_CAPS_pubproperty ContainerType

Gets or sets the type of the container for the model.(Inherited from ModelMetadata.)

System_CAPS_pubproperty 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>.)

System_CAPS_pubproperty DataTypeName

Gets or sets meta information about the data type.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty Description

Gets or sets the description of the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty DisplayFormatString

Gets or sets the display format string for the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty DisplayName

Gets or sets the display name of the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty EditFormatString

Gets or sets the edit format string of the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty HideSurroundingHtml

Gets or sets a value that indicates whether the model object should be rendered using associated HTML elements.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty HtmlEncode

(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty IsComplexType

Gets or sets a value that indicates whether the model is a complex type.(Inherited from ModelMetadata.)

System_CAPS_pubproperty IsNullableValueType

Gets a value that indicates whether the type is nullable.(Inherited from ModelMetadata.)

System_CAPS_pubproperty IsReadOnly

Gets or sets a value that indicates whether the model is read-only.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty IsRequired

Gets or sets a value that indicates whether the model is required.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty Model

Gets the value of the model.(Inherited from ModelMetadata.)

System_CAPS_pubproperty ModelType

Gets the type of the model.(Inherited from ModelMetadata.)

System_CAPS_pubproperty NullDisplayText

Gets or sets the string to display for null values.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty Order

Gets or sets a value that represents order of the current metadata.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty Properties

Gets a collection of model metadata objects that describe the properties of the model.(Inherited from ModelMetadata.)

System_CAPS_pubproperty PropertyName

Gets the property name.(Inherited from ModelMetadata.)

System_CAPS_protproperty PrototypeCache

Gets or sets the prototype cache.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_protproperty Provider

Gets or sets the provider.(Inherited from ModelMetadata.)

System_CAPS_pubproperty RequestValidationEnabled

Gets or sets a value that indicates whether request validation is enabled.(Inherited from ModelMetadata.)

System_CAPS_pubproperty ShortDisplayName

Gets or sets a short display name.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty 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>.)

System_CAPS_pubproperty ShowForEdit

Gets or sets a value that indicates whether the model should be displayed in editable views.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty SimpleDisplayText

Gets or sets the simple display string for the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty TemplateHint

Gets or sets a hint that suggests what template to use for this model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubproperty Watermark

Gets or sets a value that can be used as a watermark.(Inherited from CachedModelMetadata<TPrototypeCache>.)

Methods

Name Description
System_CAPS_protmethod 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().)

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

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

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

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

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

System_CAPS_protmethod ComputeHasNonDefaultEditFormat()

Gets a value that indicates whether the model uses a non-default edit format.(Overrides CachedModelMetadata<TPrototypeCache>.ComputeHasNonDefaultEditFormat().)

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

System_CAPS_protmethod ComputeHtmlEncode()

(Overrides CachedModelMetadata<TPrototypeCache>.ComputeHtmlEncode().)

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

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

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

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

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

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

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

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

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

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetDisplayName()

Gets the display name for the model.(Inherited from ModelMetadata.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetSimpleDisplayText()

Gets or sets the simple display string for the model.(Inherited from CachedModelMetadata<TPrototypeCache>.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetValidators(ControllerContext)

Gets a list of validators for the model.(Inherited from ModelMetadata.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.Mvc Namespace

Return to top