[This is preliminary documentation and is subject to change.]

The TypeMismatchException type exposes the following members.

Constructors

  NameDescription
Public methodTypeMismatchException()()()()
CTor
Public methodTypeMismatchException(String)
Initializes a new instance of the TypeMismatchException class with a specified error message.
Public methodTypeMismatchException(array<Type>[]()[][])
Initializes a new instance of the TypeMismatchException class with expected types
Public methodTypeMismatchException(Object, array<Type>[]()[][])
Initializes a new instance of the TypeMismatchException class with actual parameter value and expected types
Public methodTypeMismatchException(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.
Public methodTypeMismatchException(String, Object)
Initializes new instance of the TypeMismatchException class with message and actual unacceptable value.
Public methodTypeMismatchException(Object, Exception, array<Type>[]()[][])
Initializes a new instance of the TypeMismatchException class with actual parameter value, inner exception and expected types
Public methodTypeMismatchException(Object, String, array<Type>[]()[][])
Initializes a new instance of the TypeMismatchException class with actual parameter value, name of the parameter and expected types
Public methodTypeMismatchException(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.
Public methodTypeMismatchException(String, Exception, array<Type>[]()[][])
Initializes a new instance of the TypeMismatchException class with exception message, inner exception and expected types
Public methodTypeMismatchException(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
Public methodTypeMismatchException(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.
Public methodTypeMismatchException(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.
Public methodTypeMismatchException(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
Public methodTypeMismatchException(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

  NameDescription
Protected methodStatic memberCreateMessage(Object, IEnumerable<(Of <<'(Type>)>>))
Creates exception message from actual argument value and expected types
Protected methodStatic memberCreateMessage(Object, Type)
Create exception message from actual argument value and expected type
Public methodGetBaseException
When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
(Inherited from Exception.)
Public methodGetObjectData
Sets the SerializationInfo object with the parameter name and additional exception information.
(Inherited from ArgumentException.)
Public methodGetType
Gets the runtime type of the current instance.
(Inherited from Exception.)
Public methodToString
Creates and returns a string representation of the current exception.
(Inherited from Exception.)

Properties

  NameDescription
Public propertyActualValue
Value that was passed
Public propertyData
Gets a collection of key/value pairs that provide additional user-defined information about the exception.
(Inherited from Exception.)
Public propertyExpectedType
Gets type of value being expected
Public propertyExpectedTypes
Gets collection of types value was expected to be of
Public propertyHelpLink
Gets or sets a link to the help file associated with this exception.
(Inherited from Exception.)
Protected propertyHResult
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(Inherited from Exception.)
Public propertyInnerException
Gets the Exception instance that caused the current exception.
(Inherited from Exception.)
Public propertyMessage
Gets the error message and the parameter name, or only the error message if no parameter name is set.
(Inherited from ArgumentException.)
Public propertyParamName
Gets the name of the parameter that causes this exception.
(Inherited from ArgumentException.)
Public propertySource
Gets or sets the name of the application or the object that causes the error.
(Inherited from Exception.)
Public propertyStackTrace
Gets a string representation of the immediate frames on the call stack.
(Inherited from Exception.)
Public propertyTargetSite
Gets the method that throws the current exception.
(Inherited from Exception.)

Events

  NameDescription
Protected eventSerializeObjectState
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.
(Inherited from Exception.)

See Also