Microsoft.AspNetCore.Components.Forms Namespace

Provides classes for managing form views, state, and validations.

Classes

AntiforgeryRequestToken

The antiforgery token included in the request form data.

AntiforgeryStateProvider

Provides access to the antiforgery token associated with the current session.

AntiforgeryToken

Component that renders an antiforgery token as a hidden field.

BrowserFileExtensions

Contains helper methods for IBrowserFile.

DataAnnotationsValidator

Adds Data Annotations validation support to an EditContext.

EditContext

Holds metadata related to a data editing process, such as flags to indicate which fields have been modified and the current set of validation messages.

EditContextDataAnnotationsExtensions

Extension methods to add DataAnnotations validation to an EditContext.

EditContextFieldClassExtensions

Provides extension methods to describe the state of EditContext fields as CSS class names.

EditContextProperties

Holds arbitrary key/value pairs associated with an EditContext. This can be used to track additional metadata for application-specific purposes.

EditForm

Renders a form element that cascades an EditContext to descendants.

Editor<T>

A component used for editing a value of type T.

FieldChangedEventArgs

Provides information about the OnFieldChanged event.

FieldCssClassProvider

Supplies CSS class names for form fields to represent their validation state or other state information from an EditContext.

FormMappingContext

The context associated with a given form mapping operation.

FormMappingScope

Defines the mapping scope for data received from form posts.

InputBase<TValue>

A base class for form input components. This base class automatically integrates with an EditContext, which must be supplied as a cascading parameter.

InputCheckbox

An input component for editing Boolean values.

InputDate<TValue>

An input component for editing date values. The supported types for the date value are:

InputFile

A component that wraps the HTML file input element and supplies a Stream for each file's contents.

InputFileChangeEventArgs

Supplies information about an OnChange event being raised.

InputNumber<TValue>

An input component for editing numeric values. Supported numeric types are Int32, Int64, Int16, Single, Double, Decimal.

InputRadio<TValue>

An input component used for selecting a value from a group of choices.

InputRadioGroup<TValue>

Groups child InputRadio<TValue> components.

InputSelect<TValue>

A dropdown selection component.

InputText

An input component for editing String values.

InputTextArea

A multiline input component for editing String values.

RemoteBrowserFileStreamOptions

Repesents configurable options for Microsoft.AspNetCore.Components.Forms.BrowserFileStream with Blazor Server.

ValidationMessage<TValue>

Displays a list of validation messages for a specified field within a cascaded EditContext.

ValidationMessageStore

Holds validation messages for an EditContext.

ValidationRequestedEventArgs

Provides information about the OnValidationRequested event.

ValidationStateChangedEventArgs

Provides information about the OnValidationStateChanged event.

ValidationSummary

Displays a list of validation messages from a cascaded EditContext.

Structs

FieldIdentifier

Uniquely identifies a single field that can be edited. This may correspond to a property on a model object, or can be any other named value.

Interfaces

IBrowserFile

Represents the data of a file selected from an InputFile component.

Note: Metadata is provided by the client and is untrusted.

Enums

InputDateType

Represents the type of HTML input to be rendered by a InputDate<TValue> component.

Remarks

For more information about Blazor forms, see ASP.NET Core Blazor forms and validation.