InvalidEnumArgumentException Constructor (String, Int32, Type)

Initializes a new instance of the InvalidEnumArgumentException class with the specified argument name, value, and type.

Namespace:  System.ComponentModel
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

public InvalidEnumArgumentException(
	string argumentName,
	int invalidValue,
	Type enumClass
)

Parameters

argumentName
Type: System.String
The name of the argument that is not valid.
invalidValue
Type: System.Int32
The argument value that is not valid.
enumClass
Type: System.Type
The expected enumeration type.

The following table shows the initial property values for an instance of InvalidEnumArgumentException.

Property

Value

InnerException

null.

Message

null.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: