RequiredAttributeAdapter Class
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.
public ref class RequiredAttributeAdapter sealed : Microsoft::AspNetCore::Mvc::DataAnnotations::AttributeAdapterBase<System::ComponentModel::DataAnnotations::RequiredAttribute ^>
public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredAttributeAdapter = class
inherit AttributeAdapterBase<RequiredAttribute>
Public NotInheritable Class RequiredAttributeAdapter
Inherits AttributeAdapterBase(Of RequiredAttribute)
- Inheritance
-
RequiredAttributeAdapter
Constructors
RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) |
Initializes a new instance of RequiredAttributeAdapter. |
Properties
Attribute |
Gets the |
Methods
AddValidation(ClientModelValidationContext) | System.Object.AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext) |
GetErrorMessage(ModelMetadata, Object[]) |
Gets the error message formatted using the Attribute. (Inherited from ValidationAttributeAdapter<TAttribute>) |
GetErrorMessage(ModelValidationContextBase) |
Gets the error message. |