다음을 통해 공유


EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation 메서드

정의

주의

Use EnableDataAnnotationsValidation instead.

에 DataAnnotations 유효성 검사 지원을 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

매개 변수

editContext
EditContext

EditContext

반환

특성

적용 대상