EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use EnableDataAnnotationsValidation instead.
Adds DataAnnotations validation support to the EditContext.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Components::Forms::EditContext ^ AddDataAnnotationsValidation(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);
public static Microsoft.AspNetCore.Components.Forms.EditContext AddDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
[<System.Obsolete("Use EnableDataAnnotationsValidation instead.")>]
static member AddDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> Microsoft.AspNetCore.Components.Forms.EditContext
static member AddDataAnnotationsValidation : Microsoft.AspNetCore.Components.Forms.EditContext -> Microsoft.AspNetCore.Components.Forms.EditContext
<Extension()>
Public Function AddDataAnnotationsValidation (editContext As EditContext) As EditContext
Parameters
- editContext
- EditContext
The EditContext.
Returns
- Attributes