Condividi tramite


EditContextDataAnnotationsExtensions.EnableDataAnnotationsValidation Metodo

Definizione

Overload

EnableDataAnnotationsValidation(EditContext)
Obsoleti.

Abilita il supporto per la convalida di DataAnnotations per .EditContext

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

Abilita il supporto per la convalida di DataAnnotations per .EditContext

EnableDataAnnotationsValidation(EditContext)

Origine:
EditContextDataAnnotationsExtensions.cs
Origine:
EditContextDataAnnotationsExtensions.cs
Origine:
EditContextDataAnnotationsExtensions.cs
Origine:
EditContextDataAnnotationsExtensions.cs

Attenzione

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

Abilita il supporto per la convalida di DataAnnotations per .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

Parametri

editContext
EditContext

Oggetto EditContext.

Restituisce

Oggetto eliminabile la cui eliminazione rimuoverà il supporto di convalida dataAnnotations da EditContext.

Attributi

Si applica a

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

Origine:
EditContextDataAnnotationsExtensions.cs
Origine:
EditContextDataAnnotationsExtensions.cs
Origine:
EditContextDataAnnotationsExtensions.cs

Abilita il supporto per la convalida di DataAnnotations per .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

Parametri

editContext
EditContext

Oggetto EditContext.

serviceProvider
IServiceProvider

Oggetto IServiceProvider da utilizzare nell'oggetto ValidationContext.

Restituisce

Oggetto eliminabile la cui eliminazione rimuoverà il supporto di convalida dataAnnotations da EditContext.

Si applica a