EditContextDataAnnotationsExtensions.EnableDataAnnotationsValidation 메서드

정의

오버로드

EnableDataAnnotationsValidation(EditContext)
사용되지 않음.

에 대한 EditContextDataAnnotations 유효성 검사 지원을 사용하도록 설정합니다.

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

에 대한 EditContextDataAnnotations 유효성 검사 지원을 사용하도록 설정합니다.

EnableDataAnnotationsValidation(EditContext)

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

주의

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

에 대한 EditContextDataAnnotations 유효성 검사 지원을 사용하도록 설정합니다.

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

매개 변수

editContext
EditContext

EditContext

반환

삭제가 에서 EditContextDataAnnotations 유효성 검사 지원을 제거하는 삭제 가능한 개체입니다.

특성

적용 대상

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

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

에 대한 EditContextDataAnnotations 유효성 검사 지원을 사용하도록 설정합니다.

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

매개 변수

editContext
EditContext

EditContext

serviceProvider
IServiceProvider

IServiceProvider 에서 사용할 입니다ValidationContext.

반환

삭제가 에서 EditContextDataAnnotations 유효성 검사 지원을 제거하는 삭제 가능한 개체입니다.

적용 대상