November Happy Hour will be moved to Thursday December 5th.

Class TypeMismatchException

Represents errors that occur when an object is not of the required System.Type.

Inheritance
System.Object
System.Exception
TypeMismatchException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class TypeMismatchException : Exception, ISerializable, _Exception

Constructors

TypeMismatchException()

Initializes a new instance of the TypeMismatchException class.

Declaration
public TypeMismatchException()

TypeMismatchException(SerializationInfo, StreamingContext)

Initializes a new instance with serialized data.

Declaration
protected TypeMismatchException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The object that holds the serialized object data.

System.Runtime.Serialization.StreamingContext context

The contextual information about the source or destination.

TypeMismatchException(String)

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

Declaration
public TypeMismatchException(string message)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

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.

Declaration
public TypeMismatchException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

System.Exception innerException

The inner exception that is the cause of the current exception.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods