Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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>

NameDescription
System_CAPS_pubmethodCachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

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

System_CAPS_pubmethodCachedDataAnnotationsModelMetadata(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.

NameDescription
System_CAPS_pubpropertyAdditionalValues

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

System_CAPS_pubpropertyContainer

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

System_CAPS_pubpropertyContainerType

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

System_CAPS_pubpropertyConvertEmptyStringToNull

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_pubpropertyDataTypeName

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

System_CAPS_pubpropertyDescription

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

System_CAPS_pubpropertyDisplayFormatString

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

System_CAPS_pubpropertyDisplayName

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

System_CAPS_pubpropertyEditFormatString

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

System_CAPS_pubpropertyHideSurroundingHtml

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

System_CAPS_pubpropertyHtmlEncode
System_CAPS_pubpropertyIsComplexType

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

System_CAPS_pubpropertyIsNullableValueType

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

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyIsRequired

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

System_CAPS_pubpropertyModel

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

System_CAPS_pubpropertyModelType

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

System_CAPS_pubpropertyNullDisplayText

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

System_CAPS_pubpropertyOrder

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

System_CAPS_pubpropertyProperties

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

System_CAPS_pubpropertyPropertyName

Gets the property name.(Inherited from ModelMetadata.)

System_CAPS_protpropertyPrototypeCache

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

System_CAPS_protpropertyProvider

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

System_CAPS_pubpropertyRequestValidationEnabled

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

System_CAPS_pubpropertyShortDisplayName

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

System_CAPS_pubpropertyShowForDisplay

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_pubpropertyShowForEdit

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

System_CAPS_pubpropertySimpleDisplayText

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

System_CAPS_pubpropertyTemplateHint

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

System_CAPS_pubpropertyWatermark

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

NameDescription
System_CAPS_protmethodComputeConvertEmptyStringToNull()

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_protmethodComputeDataTypeName()

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_protmethodComputeDescription()

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_protmethodComputeDisplayFormatString()

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_protmethodComputeDisplayName()

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_protmethodComputeEditFormatString()

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_protmethodComputeHasNonDefaultEditFormat()

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

System_CAPS_protmethodComputeHideSurroundingHtml()

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_protmethodComputeHtmlEncode()
System_CAPS_protmethodComputeIsReadOnly()

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_protmethodComputeIsRequired()

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_protmethodComputeNullDisplayText()

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_protmethodComputeOrder()

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_protmethodComputeShortDisplayName()

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_protmethodComputeShowForDisplay()

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_protmethodComputeShowForEdit()

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_protmethodComputeSimpleDisplayText()

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_protmethodComputeTemplateHint()

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_protmethodComputeWatermark()

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_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetDisplayName()

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetSimpleDisplayText()

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

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValidators(ControllerContext)

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

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft