Share via


CachedModelMetadata<TPrototypeCache> Class

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class CachedModelMetadata(Of TPrototypeCache) _
    Inherits ModelMetadata
'Usage
Dim instance As CachedModelMetadata(Of TPrototypeCache)
public abstract class CachedModelMetadata<TPrototypeCache> : ModelMetadata
generic<typename TPrototypeCache>
public ref class CachedModelMetadata abstract : public ModelMetadata
[<AbstractClassAttribute>]
type CachedModelMetadata<'TPrototypeCache> =  
    class
        inherit ModelMetadata
    end
JScript does not support generic types and methods.

Type Parameters

  • TPrototypeCache
    The type of prototype cache.

The CachedModelMetadata<TPrototypeCache> type exposes the following members.

Constructors

  Name Description
Protected method CachedModelMetadata<TPrototypeCache>(CachedModelMetadata<TPrototypeCache>, Func<Object>) Initializes a new instance of the CachedModelMetadata<TPrototypeCache> class.
Protected method CachedModelMetadata<TPrototypeCache>(DataAnnotationsModelMetadataProvider, Type, Type, String, TPrototypeCache) Initializes a new instance of the CachedModelMetadata<TPrototypeCache> 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. (Overrides ModelMetadata.ConvertEmptyStringToNull.)
Public property Description Gets or sets the description of the model. (Overrides ModelMetadata.Description.)
Public property IsComplexType Gets a value that indicates whether the model is a complex type. (Overrides ModelMetadata.IsComplexType.)
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. (Overrides ModelMetadata.IsReadOnly.)
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.
Protected property Provider Gets or sets the provider. (Inherited from ModelMetadata.)

Top

Methods

  Name Description
Protected method ComputeConvertEmptyStringToNull Indicates whether empty strings that are posted back in forms should be computed and converted to null.
Protected method ComputeDescription Indicates the computation value.
Protected method ComputeIsComplexType Gets a value that indicates whether the model is a complex type.
Protected method ComputeIsReadOnly Gets a value that indicates whether the model to be computed is read-only.
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