RequiresAnyAttributeGetErrorMessage Method

Gets the error message to display if validation failed.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public override string GetErrorMessage(
	CommandLineParser parser
)

Parameters

parser  CommandLineParser
The command line parser that was validated.

Return Value

String
The error message.

Remarks

Use a custom LocalizedStringProvider class that overrides the LocalizedStringProviderValidateRequiresAnyFailed(IEnumerableCommandLineArgument) method to customize this message.

See Also