CachedModelMetadata<TPrototypeCache>.ComputeIsRequired Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 required.
protected virtual bool ComputeIsRequired ();
abstract member ComputeIsRequired : unit -> bool
override this.ComputeIsRequired : unit -> bool
Protected Overridable Function ComputeIsRequired () As Boolean
Returns
A cached value that indicates whether the model is required.