Skip to content

M_CodeJam_EnumCodeExceptions_ArgumentNotDefinedException__1

Andrew Koryavchenko edited this page Jul 4, 2017 · 3 revisions

EnumCodeExceptions.ArgumentNotDefinedException(TEnum) Method

Creates for undefined enum value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static ArgumentOutOfRangeException ArgumentNotDefinedException<TEnum>(
	string argumentName,
	TEnum value
)
where TEnum : struct, new(), IComparable, IFormattable, IConvertible

VB

Public Shared Function ArgumentNotDefinedException(Of TEnum As {Structure, New, IComparable, IFormattable, IConvertible}) ( 
	argumentName As String,
	value As TEnum
) As ArgumentOutOfRangeException

F#

static member ArgumentNotDefinedException : 
        argumentName : string * 
        value : 'TEnum -> ArgumentOutOfRangeException  when 'TEnum : struct, new() and IComparable and IFormattable and IConvertible

Parameters

 

argumentName
Type: System.String
Name of the argument.
value
Type: TEnum
The value.

Type Parameters

 

TEnum
The type of the enum value.

Return Value

Type: ArgumentOutOfRangeException
Initialized instance of

See Also

Reference

EnumCodeExceptions Class
CodeJam Namespace
System.ArgumentOutOfRangeException
System.ArgumentOutOfRangeException

Clone this wiki locally