ValidationMessage<TValue> Class

Definition

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

generic <typename TValue>
public ref class ValidationMessage : Microsoft::AspNetCore::Components::ComponentBase, IDisposable
public class ValidationMessage<TValue> : Microsoft.AspNetCore.Components.ComponentBase, IDisposable
type ValidationMessage<'Value> = class
    inherit ComponentBase
    interface IDisposable
Public Class ValidationMessage(Of TValue)
Inherits ComponentBase
Implements IDisposable

Type Parameters

T
TValue
Inheritance
ValidationMessage<TValue>
Implements

Constructors

ValidationMessage<TValue>()

Constructs an instance of <xref data-throw-if-not-resolved="true" uid="Microsoft.AspNetCore.Components.Forms.ValidationMessage1">.

Properties

AdditionalAttributes

Gets or sets a collection of additional attributes that will be applied to the created div element.

For

Specifies the field for which validation messages should be displayed.

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

Dispose(Boolean)

Called to dispose this instance.

InvokeAsync(Action)

Executes the supplied work item on the associated renderer's synchronization context.

(Inherited from ComponentBase)
InvokeAsync(Func<Task>)

Executes the supplied work item on the associated renderer's synchronization context.

(Inherited from ComponentBase)
OnAfterRender(Boolean)

Method invoked after each time the component has been rendered.

(Inherited from ComponentBase)
OnAfterRenderAsync(Boolean)

Method invoked after each time the component has been rendered. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.

(Inherited from ComponentBase)
OnInitialized()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

(Inherited from ComponentBase)
OnInitializedAsync()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

(Inherited from ComponentBase)
OnParametersSet()

Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

OnParametersSetAsync()

Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

(Inherited from ComponentBase)
SetParametersAsync(ParameterView)

Sets parameters supplied by the component's parent in the render tree.

(Inherited from ComponentBase)
ShouldRender()

Returns a flag to indicate whether the component should render.

(Inherited from ComponentBase)
StateHasChanged()

Notifies the component that its state has changed. When applicable, this will cause the component to be re-rendered.

(Inherited from ComponentBase)

Explicit Interface Implementations

IComponent.Attach(RenderHandle) (Inherited from ComponentBase)
IDisposable.Dispose()
IHandleAfterRender.OnAfterRenderAsync() (Inherited from ComponentBase)
IHandleEvent.HandleEventAsync(EventCallbackWorkItem, Object) (Inherited from ComponentBase)

Applies to