EditContextDataAnnotationsExtensions.EnableDataAnnotationsValidation メソッド

定義

オーバーロード

EnableDataAnnotationsValidation(EditContext)
古い.

の DataAnnotations 検証サポートを EditContext有効にします。

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

の DataAnnotations 検証サポートを EditContext有効にします。

EnableDataAnnotationsValidation(EditContext)

注意事項

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

の DataAnnotations 検証サポートを 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

パラメーター

editContext
EditContext

EditContext

戻り値

破棄によって DataAnnotations 検証サポートが から EditContext削除される破棄可能なオブジェクト。

属性

適用対象

EnableDataAnnotationsValidation(EditContext, IServiceProvider)

の DataAnnotations 検証サポートを 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

パラメーター

editContext
EditContext

EditContext

serviceProvider
IServiceProvider

IServiceProviderValidationContext使用される 。

戻り値

破棄によって DataAnnotations 検証サポートが から EditContext削除される破棄可能なオブジェクト。

適用対象