Share via


ValidationMessageStore.Add Method

Definition

Overloads

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.

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>)

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

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

public:
 void Add(Microsoft::AspNetCore::Components::Forms::FieldIdentifier % fieldIdentifier, System::Collections::Generic::IEnumerable<System::String ^> ^ messages);
public void Add (in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Collections.Generic.IEnumerable<string> messages);
member this.Add : FieldIdentifier * seq<string> -> unit
Public Sub Add (ByRef fieldIdentifier As FieldIdentifier, messages As IEnumerable(Of String))

Parameters

fieldIdentifier
FieldIdentifier

The identifier for the field.

messages
IEnumerable<String>

The validation messages to be added.

Applies to

Add(FieldIdentifier, String)

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

Adds a validation message for the specified field.

public:
 void Add(Microsoft::AspNetCore::Components::Forms::FieldIdentifier % fieldIdentifier, System::String ^ message);
public void Add (in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, string message);
member this.Add : FieldIdentifier * string -> unit
Public Sub Add (ByRef fieldIdentifier As FieldIdentifier, message As String)

Parameters

fieldIdentifier
FieldIdentifier

The identifier for the field.

message
String

The validation message.

Applies to

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

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

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

public:
 void Add(System::Linq::Expressions::Expression<Func<System::Object ^> ^> ^ accessor, System::Collections::Generic::IEnumerable<System::String ^> ^ messages);
public void Add (System.Linq.Expressions.Expression<Func<object>> accessor, System.Collections.Generic.IEnumerable<string> messages);
member this.Add : System.Linq.Expressions.Expression<Func<obj>> * seq<string> -> unit
Public Sub Add (accessor As Expression(Of Func(Of Object)), messages As IEnumerable(Of String))

Parameters

accessor
Expression<Func<Object>>

Identifies the field for which to add the messages.

messages
IEnumerable<String>

The validation messages to be added.

Applies to

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

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

Adds a validation message for the specified field.

public:
 void Add(System::Linq::Expressions::Expression<Func<System::Object ^> ^> ^ accessor, System::String ^ message);
public void Add (System.Linq.Expressions.Expression<Func<object>> accessor, string message);
member this.Add : System.Linq.Expressions.Expression<Func<obj>> * string -> unit
Public Sub Add (accessor As Expression(Of Func(Of Object)), message As String)

Parameters

accessor
Expression<Func<Object>>

Identifies the field for which to add the message.

message
String

The validation message.

Applies to