Share via


ValidationMessageStore Class

Definition

Holds validation messages for an EditContext.

public ref class ValidationMessageStore sealed
public sealed class ValidationMessageStore
type ValidationMessageStore = class
Public NotInheritable Class ValidationMessageStore
Inheritance
ValidationMessageStore

Constructors

ValidationMessageStore(EditContext)

Creates an instance of ValidationMessageStore.

Properties

Item[Expression<Func<Object>>]

Gets the validation messages within this ValidationMessageStore for the specified field.

To get the validation messages across all validation message stores, use GetValidationMessages(FieldIdentifier) instead

Item[FieldIdentifier]

Gets the validation messages within this ValidationMessageStore for the specified field.

To get the validation messages across all validation message stores, use GetValidationMessages(FieldIdentifier) instead

Methods

Add(Expression<Func<Object>>, IEnumerable<String>)

Adds the messages from the specified collection for the specified field.

Add(Expression<Func<Object>>, String)

Adds a validation message for the specified field.

Add(FieldIdentifier, IEnumerable<String>)

Adds the messages from the specified collection for the specified field.

Add(FieldIdentifier, String)

Adds a validation message for the specified field.

Clear()

Removes all messages within this ValidationMessageStore.

Clear(Expression<Func<Object>>)

Removes all messages within this ValidationMessageStore for the specified field.

Clear(FieldIdentifier)

Removes all messages within this ValidationMessageStore for the specified field.

Applies to