mscorlib(4.0.0.0) API with additions
InvalidEnumArgumentException.cs
4 
5 namespace System.ComponentModel
6 {
9  [HostProtection(SecurityAction.LinkDemand, SharedState = true)]
11  {
14  : this(null)
15  {
16  }
17 
20  public InvalidEnumArgumentException(string message)
21  : base(message)
22  {
23  }
24 
28  public InvalidEnumArgumentException(string message, Exception innerException)
29  : base(message, innerException)
30  {
31  }
32 
37  public InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass)
38  : base(SR.GetString("InvalidEnumArgument", argumentName, invalidValue.ToString(CultureInfo.CurrentCulture), enumClass.Name), argumentName)
39  {
40  }
41 
46  : base(info, context)
47  {
48  }
49  }
50 }
override string ToString()
Creates and returns a string representation of the current exception.
Definition: Exception.cs:474
InvalidEnumArgumentException()
Initializes a new instance of the T:System.ComponentModel.InvalidEnumArgumentException class without ...
InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass)
Initializes a new instance of the T:System.ComponentModel.InvalidEnumArgumentException class with a m...
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
InvalidEnumArgumentException(string message, Exception innerException)
Initializes a new instance of the T:System.ComponentModel.InvalidEnumArgumentException class with the...
The exception thrown when using invalid arguments that are enumerators.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown when one of the arguments provided to a method is not valid.
InvalidEnumArgumentException(string message)
Initializes a new instance of the T:System.ComponentModel.InvalidEnumArgumentException class with the...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
Specifies that the class can be serialized.
Compare strings using culture-sensitive sort rules and the current culture.
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
InvalidEnumArgumentException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.ComponentModel.InvalidEnumArgumentException class using th...