共用方式為


CachedDataAnnotationsModelMetadata.ComputeIsRequired 方法

定義

取得值,這個值表示是否需要模型。如果快取值,則會傳回現金值;否則,值會從模型中繼資料擷取並儲存在快取中。

protected override bool ComputeIsRequired();
override this.ComputeIsRequired : unit -> bool
Protected Overrides Function ComputeIsRequired () As Boolean

傳回

表示是否需要模型的值。

適用於