ValidatePatternAttributeErrorMessage Property

Gets or sets a custom error message to use.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public string? ErrorMessage { get; set; }

Property Value

String
A compound format string for the error message to use, or to use a generic error message.

Remarks

If this property is , the message returned by ArgumentValidationAttributeGetErrorMessage(CommandLineArgument, Object) will be used.

This property is a compound format string, and may have three placeholders: {0} for the argument name, {1} for the value, and {2} for the pattern.

See Also