Partager via


EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation Méthode

Définition

Attention

Use EnableDataAnnotationsValidation instead.

Ajoute la prise en charge de la validation de DataAnnotations au EditContext.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Components::Forms::EditContext ^ AddDataAnnotationsValidation(Microsoft::AspNetCore::Components::Forms::EditContext ^ editContext);
public static Microsoft.AspNetCore.Components.Forms.EditContext AddDataAnnotationsValidation (this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
[System.Obsolete("Use EnableDataAnnotationsValidation instead.")]
public static Microsoft.AspNetCore.Components.Forms.EditContext AddDataAnnotationsValidation (this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
static member AddDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> Microsoft.AspNetCore.Components.Forms.EditContext
[<System.Obsolete("Use EnableDataAnnotationsValidation instead.")>]
static member AddDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> Microsoft.AspNetCore.Components.Forms.EditContext
<Extension()>
Public Function AddDataAnnotationsValidation (editContext As EditContext) As EditContext

Paramètres

editContext
EditContext

L’EditContextopérateur

Retours

Attributs

S’applique à