EditContextDataAnnotationsExtensions.EnableDataAnnotationsValidation Méthode

Définition

Surcharges

EnableDataAnnotationsValidation(EditContext)
Obsolète.

Active la prise en charge de la validation DataAnnotations pour .EditContext

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

Active la prise en charge de la validation DataAnnotations pour .EditContext

EnableDataAnnotationsValidation(EditContext)

Source:
EditContextDataAnnotationsExtensions.cs
Source:
EditContextDataAnnotationsExtensions.cs
Source:
EditContextDataAnnotationsExtensions.cs
Source:
EditContextDataAnnotationsExtensions.cs

Attention

This API is obsolete and may be removed in future versions. Use the overload that accepts an IServiceProvider instead.

Active la prise en charge de la validation DataAnnotations pour .EditContext

public static IDisposable EnableDataAnnotationsValidation (this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
[System.Obsolete("This API is obsolete and may be removed in future versions. Use the overload that accepts an IServiceProvider instead.")]
public static IDisposable EnableDataAnnotationsValidation (this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
static member EnableDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> IDisposable
[<System.Obsolete("This API is obsolete and may be removed in future versions. Use the overload that accepts an IServiceProvider instead.")>]
static member EnableDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> IDisposable
<Extension()>
Public Function EnableDataAnnotationsValidation (editContext As EditContext) As IDisposable

Paramètres

editContext
EditContext

L’EditContextopérateur

Retours

Objet jetable dont la suppression supprimera la prise en charge de la validation DataAnnotations du EditContext.

Attributs

S’applique à

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

Source:
EditContextDataAnnotationsExtensions.cs
Source:
EditContextDataAnnotationsExtensions.cs
Source:
EditContextDataAnnotationsExtensions.cs

Active la prise en charge de la validation DataAnnotations pour .EditContext

public static IDisposable EnableDataAnnotationsValidation (this Microsoft.AspNetCore.Components.Forms.EditContext editContext, IServiceProvider serviceProvider);
static member EnableDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext * IServiceProvider -> IDisposable
<Extension()>
Public Function EnableDataAnnotationsValidation (editContext As EditContext, serviceProvider As IServiceProvider) As IDisposable

Paramètres

editContext
EditContext

L’EditContextopérateur

serviceProvider
IServiceProvider

IServiceProvider à utiliser dans .ValidationContext

Retours

Objet jetable dont la suppression supprimera la prise en charge de la validation DataAnnotations du EditContext.

S’applique à