Skip to content

M_CodeJam_EnumValues_IsDefined_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

EnumValues.IsDefined Method (String, Boolean)

Determines whether the specified enum name is defined.

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

Syntax

C#

public bool IsDefined(
	string name,
	bool ignoreCase
)

VB

Public Function IsDefined ( 
	name As String,
	ignoreCase As Boolean
) As Boolean

F#

member IsDefined : 
        name : string * 
        ignoreCase : bool -> bool 

Parameters

 

name
Type: System.String
The name to check.
ignoreCase
Type: System.Boolean
if set to true the casing will be ignored.

Return Value

Type: Boolean
true if the specified enum name is defined; otherwise, false.

See Also

Reference

EnumValues Class
IsDefined Overload
CodeJam Namespace

Clone this wiki locally