Skip to content

MessageFormatter.FormatErrors Method

Definition

Lazily enumerates over all Errors in the specified node.

public static IEnumerable<string> FormatErrors<TNode>(Node<TNode> node, MessageFormatterOptions? options = null)
   where TNode : Node<TNode>;

View source

Type Parameters

Name Description
TNode The type of the node.

Parameters

Name Type Description
node Node<TNode> The node.
options MessageFormatterOptions The MessageFormatterOptions to use. If not specified then Default is used.

Returns

IEnumerable<String>

A lazy enumeration of formatted errors.