Share via


CachedDataAnnotationsModelMetadata Class

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

Inheritance Hierarchy

System.Object
  System.Web.Http.Metadata.ModelMetadata
    System.Web.Http.Metadata.Providers.CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
      System.Web.Http.Metadata.Providers.CachedDataAnnotationsModelMetadata

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class CachedDataAnnotationsModelMetadata _
    Inherits CachedModelMetadata(Of CachedDataAnnotationsMetadataAttributes)
'Usage
Dim instance As CachedDataAnnotationsModelMetadata
public class CachedDataAnnotationsModelMetadata : CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
public ref class CachedDataAnnotationsModelMetadata : public CachedModelMetadata<CachedDataAnnotationsMetadataAttributes^>
type CachedDataAnnotationsModelMetadata =  
    class
        inherit CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>
    end
public class CachedDataAnnotationsModelMetadata extends CachedModelMetadata<CachedDataAnnotationsMetadataAttributes>

The CachedDataAnnotationsModelMetadata type exposes the following members.

Constructors

  Name Description
Public method CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) Initializes a new instance of the CachedDataAnnotationsModelMetadata class.
Public method CachedDataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) Initializes a new instance of the CachedDataAnnotationsModelMetadata class.

Top

Properties

  Name Description
Public property AdditionalValues Gets a dictionary that contains additional metadata about the model. (Inherited from ModelMetadata.)
Public property ContainerType Gets or sets the type of the container for the model. (Inherited from ModelMetadata.)
Public property ConvertEmptyStringToNull Gets 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 property Description Gets or sets the description of the model. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property IsComplexType Gets a value that indicates whether the model is a complex type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property IsNullableValueType Gets a value that indicates whether the type is nullable. (Inherited from ModelMetadata.)
Public property IsReadOnly Gets or sets a value that indicates whether the model is read-only. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Public property Model Gets the value of the model. (Inherited from ModelMetadata.)
Public property ModelType Gets the type of the model. (Inherited from ModelMetadata.)
Public property Properties Gets a collection of model metadata objects that describe the properties of the model. (Inherited from ModelMetadata.)
Public property PropertyName Gets the property name. (Inherited from ModelMetadata.)
Protected property PrototypeCache Gets or sets a value that indicates whether the prototype cache is updating. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected property Provider Gets or sets the provider. (Inherited from ModelMetadata.)

Top

Methods

  Name Description
Protected method ComputeConvertEmptyStringToNull Retrieves a value that indicates whether empty strings that are posted back in forms should be converted to null. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeConvertEmptyStringToNull().)
Protected method ComputeDescription Retrieves the description of the model. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeDescription().)
Protected method ComputeIsComplexType Gets a value that indicates whether the model is a complex type. (Inherited from CachedModelMetadata<TPrototypeCache>.)
Protected method ComputeIsReadOnly Retrieves a value that indicates whether the model is read-only. (Overrides CachedModelMetadata<TPrototypeCache>.ComputeIsReadOnly().)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDisplayName Gets the display name for the model. (Inherited from ModelMetadata.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValidators Gets a list of validators for the model. (Inherited from ModelMetadata.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Http.Metadata.Providers Namespace