class InvalidEnumArgumentException

in global :: System . ComponentModel

The exception thrown when using invalid arguments that are enumerators.


public InvalidEnumArgumentException( string message )

Initializes a new instance of the class with the specified message.

  • message The message to display with this exception.

public InvalidEnumArgumentException( string message, Exception innerException )

Initializes a new instance of the class with the specified detailed description and the specified exception.

  • message A detailed description of the error.
  • innerException A reference to the inner exception that is the cause of this exception.

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

Initializes a new instance of the class with a message generated from the argument, the invalid value, and an enumeration class.

  • argumentName The name of the argument that caused the exception.
  • invalidValue The value of the argument that failed.
  • enumClass A that represents the enumeration class with the valid values.

public InvalidEnumArgumentException( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string StackTrace { get; }

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public int HResult { get; set; }

😔 No documentation found.

public string Source { get; set; }

😔 No documentation found.

😔 No documentation found.

public Exception InnerException { get; }

😔 No documentation found.

public Exception GetBaseException( )

😔 No documentation found.

public IDictionary Data { get; }

😔 No documentation found.

public string ParamName { get; }

😔 No documentation found.

public string Message { get; }

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public void GetObjectData( SerializationInfo info, StreamingContext context )

😔 No documentation found.