Share via


EditContext.GetValidationMessages Method

Definition

Overloads

GetValidationMessages()

Gets the current validation messages across all fields.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

GetValidationMessages(FieldIdentifier)

Gets the current validation messages for the specified field.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

GetValidationMessages(Expression<Func<Object>>)

Gets the current validation messages for the specified field.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

GetValidationMessages()

Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs

Gets the current validation messages across all fields.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetValidationMessages();
public System.Collections.Generic.IEnumerable<string> GetValidationMessages ();
member this.GetValidationMessages : unit -> seq<string>
Public Function GetValidationMessages () As IEnumerable(Of String)
Public Iterator Function GetValidationMessages () As IEnumerable(Of String)

Returns

The current validation messages.

Applies to

GetValidationMessages(FieldIdentifier)

Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs

Gets the current validation messages for the specified field.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetValidationMessages(Microsoft::AspNetCore::Components::Forms::FieldIdentifier fieldIdentifier);
public System.Collections.Generic.IEnumerable<string> GetValidationMessages (Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
member this.GetValidationMessages : Microsoft.AspNetCore.Components.Forms.FieldIdentifier -> seq<string>
Public Function GetValidationMessages (fieldIdentifier As FieldIdentifier) As IEnumerable(Of String)
Public Iterator Function GetValidationMessages (fieldIdentifier As FieldIdentifier) As IEnumerable(Of String)

Parameters

fieldIdentifier
FieldIdentifier

Identifies the field whose current validation messages should be returned.

Returns

The current validation messages for the specified field.

Applies to

GetValidationMessages(Expression<Func<Object>>)

Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs
Source:
EditContext.cs

Gets the current validation messages for the specified field.

This method does not perform validation itself. It only returns messages determined by previous validation actions.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetValidationMessages(System::Linq::Expressions::Expression<Func<System::Object ^> ^> ^ accessor);
public System.Collections.Generic.IEnumerable<string> GetValidationMessages (System.Linq.Expressions.Expression<Func<object>> accessor);
member this.GetValidationMessages : System.Linq.Expressions.Expression<Func<obj>> -> seq<string>
Public Function GetValidationMessages (accessor As Expression(Of Func(Of Object))) As IEnumerable(Of String)

Parameters

accessor
Expression<Func<Object>>

Identifies the field whose current validation messages should be returned.

Returns

The current validation messages for the specified field.

Applies to