LocalizedStringProviderValidateEnumValueFailed Method

Gets an error message used if the ValidateEnumValueAttribute attribute fails validation.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public virtual string ValidateEnumValueFailed(
	string argumentName,
	Type enumType,
	Object? value,
	bool includeValues
)

Parameters

argumentName  String
The name of the argument.
enumType  Type
The type of the enumeration.
value  Object
The value of the argument.
includeValues  Boolean
to include the possible values of the enumeration in the error message; otherwise, .

Return Value

String
The error message.

See Also