Share via


CachedModelMetadata<TPrototypeCache>.ComputeIsReadOnly Method ()

 

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.

Gets or sets a cached value that indicates whether the model is read-only.

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

Syntax

protected virtual bool ComputeIsReadOnly()
protected:
virtual bool ComputeIsReadOnly()
abstract ComputeIsReadOnly : unit -> bool
override ComputeIsReadOnly : unit -> bool
Protected Overridable Function ComputeIsReadOnly As Boolean

Return Value

Type: System.Boolean

A cached value that indicates whether the model is read-only.

See Also

CachedModelMetadata<TPrototypeCache> Class
System.Web.Mvc Namespace

Return to top