[This is preliminary documentation and is subject to change.]
The TypeMismatchException type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TypeMismatchException()()()() | CTor | |
| TypeMismatchException(String) | Initializes a new instance of the TypeMismatchException class with a specified error message. | |
| TypeMismatchException(array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with expected types | |
| TypeMismatchException(Object, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with actual parameter value and expected types | |
| TypeMismatchException(String, Exception) | Initializes a new instance of the TypeMismatchException class with a specified error message and a reference to the inner exception that is the cause of this exception. | |
| TypeMismatchException(String, Object) | Initializes new instance of the TypeMismatchException class with message and actual unacceptable value. | |
| TypeMismatchException(Object, Exception, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with actual parameter value, inner exception and expected types | |
| TypeMismatchException(Object, String, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with actual parameter value, name of the parameter and expected types | |
| TypeMismatchException(Object, Type, Exception) | Initializes a new instance of TypeMismatchException class with name of parameter, actual value, expected type and optionally reference to the inner exception that is cause of thios exception. | |
| TypeMismatchException(String, Exception, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with exception message, inner exception and expected types | |
| TypeMismatchException(Object, String, Exception, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with actual parameter value, name of the parameter, inner exception and expected types | |
| TypeMismatchException(Object, Type, String, Exception) | Initializes a new instance of TypeMismatchException class with message, name of parameter, actual value, expected type and optionally reference to the inner exception that is cause of thios exception. | |
| TypeMismatchException(String, Object, Type, Exception) | Initializes a new instance of TypeMismatchException class with name of parameter, actual value, expected type and optionally reference to the inner exception that is cause of thios exception. | |
| TypeMismatchException(Object, String, String, Exception, array<Type>[]()[][]) | Initializes a new instance of the TypeMismatchException class with actual parameter value, name of the parameter, exception message, inner exception and expected types | |
| TypeMismatchException(String, Object, Type, String, Exception) | Initializes a new instance of TypeMismatchException class with message, name of parameter, actual value, expected type and optionally reference to the inner exception that is cause of thios exception. |
Methods
| Name | Description | |
|---|---|---|
| CreateMessage(Object, IEnumerable<(Of <<'(Type>)>>)) | Creates exception message from actual argument value and expected types | |
| CreateMessage(Object, Type) | Create exception message from actual argument value and expected type | |
| GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.) | |
| GetObjectData | Sets the SerializationInfo object with the parameter name and additional exception information. (Inherited from ArgumentException.) | |
| GetType | Gets the runtime type of the current instance. (Inherited from Exception.) | |
| ToString | Creates and returns a string representation of the current exception. (Inherited from Exception.) |
Properties
| Name | Description | |
|---|---|---|
| ActualValue | Value that was passed | |
| Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.) | |
| ExpectedType | Gets type of value being expected | |
| ExpectedTypes | Gets collection of types value was expected to be of | |
| HelpLink | Gets or sets a link to the help file associated with this exception. (Inherited from Exception.) | |
| HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.) | |
| InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
| Message | Gets the error message and the parameter name, or only the error message if no parameter name is set. (Inherited from ArgumentException.) | |
| ParamName | Gets the name of the parameter that causes this exception. (Inherited from ArgumentException.) | |
| Source | Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.) | |
| StackTrace | Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.) | |
| TargetSite | Gets the method that throws the current exception. (Inherited from Exception.) |
Events
| Name | Description | |
|---|---|---|
| SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.) |