Class TypeMismatchException
Represents errors that occur when an object is not of the required System.
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class TypeMismatchException : Exception
Constructors
TypeMismatchException()
Initializes a new instance of the Type
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. |
info | The object that holds the serialized object data. |
System. |
context | The contextual information about the source or destination. |
TypeMismatchException(String)
Initializes a new instance of the Type
Declaration
public TypeMismatchException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
TypeMismatchException(String, Exception)
Initializes a new instance of the Type
Declaration
public TypeMismatchException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
System. |
innerException | The inner exception that is the cause of the current exception. |