Skip to content

M_CodeJam_EnumCodeExceptions_ArgumentFlagUnset__1

andrewvk edited this page Nov 5, 2016 · 3 revisions

EnumCodeExceptions.ArgumentFlagUnset(TEnum) Method

Creates for flag is not set case.

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

Syntax

C#

public static ArgumentException ArgumentFlagUnset<TEnum>(
	string argumentName,
	TEnum value,
	TEnum flag
)
where TEnum : struct, new(), IComparable, IFormattable, IConvertible

VB

Public Shared Function ArgumentFlagUnset(Of TEnum As {Structure, New, IComparable, IFormattable, IConvertible}) ( 
	argumentName As String,
	value As TEnum,
	flag As TEnum
) As ArgumentException

F#

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

Parameters

 

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

Type Parameters

 

TEnum
The type of the enum value.

Return Value

Type: ArgumentException
Initialized instance of

See Also

Reference

EnumCodeExceptions Class
CodeJam Namespace
System.ArgumentException
System.ArgumentException

Clone this wiki locally