Export (0) Print
Expand All

CachedDataAnnotationsModelMetadata Class

Provides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, for a data model.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.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.
Public methodCachedDataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)Initializes a new instance of the CachedDataAnnotationsModelMetadata class.
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 value that indicates whether empty strings that are posted back in forms should be converted to null. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyDescriptionGets or sets the description of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public propertyIsComplexTypeGets a value that indicates whether the model is a complex type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
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 propertyModelGets the value of the model. (Inherited from ModelMetadata.)
Public propertyModelTypeGets the type of the model. (Inherited from ModelMetadata.)
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 a value that indicates whether the prototype cache is updating. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected propertyProviderGets or sets the provider. (Inherited from ModelMetadata.)
Top

  NameDescription
Protected methodComputeConvertEmptyStringToNullRetrieves a value that indicates whether empty strings that are posted back in forms should be converted to null. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeConvertEmptyStringToNull().)
Protected methodComputeDescriptionRetrieves the description of the model. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeDescription().)
Protected methodComputeIsComplexTypeGets a value that indicates whether the model is a complex type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected methodComputeIsReadOnlyRetrieves a value that indicates whether the model is read-only. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeIsReadOnly().)
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.)
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.
Show:
© 2014 Microsoft