EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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