Freigeben über


EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation Methode

Definition

Achtung

Use EnableDataAnnotationsValidation instead.

Fügt der DataAnnotations-Validierungsunterstützung hinzu 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

Parameter

editContext
EditContext

Die EditContext.

Gibt zurück

Attribute

Gilt für: