Op Englesch liesen

Deelen iwwer


RequiredAttributeAdapter Class

Definition

C#
public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
Inheritance

Constructors

Properties

Attribute

Gets the TAttribute instance.

(Inherited from ValidationAttributeAdapter<TAttribute>)

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.

Applies to

Produkt Versiounen
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0