ValidationMetadata Class¶
Properties¶
-
IsRequired
()¶ Gets or sets a value indicating whether or not the model is a required value. Will be ignored if the model metadata being created is not a property. If <c>null</c> then [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsRequired]() will be computed based on the model [System.Type](). See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsRequired]().
Return type: System.Nullable{System.Boolean} public bool ? IsRequired { get; set; }
-
ValidatorMetadata
()¶ Gets a list of metadata items for validators.
Return type: System.Collections.Generic.IList{System.Object} public IList<object> ValidatorMetadata { get; }
-