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

Class InvalidModelTypeException

Exception class thrown when an invalid model type was found.

Inheritance
System.Object
InvalidModelTypeException
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class InvalidModelTypeException : NotSupportedException

Constructors

InvalidModelTypeException()

Initializes a new instance of the InvalidModelTypeException class.

Declaration
public InvalidModelTypeException()

InvalidModelTypeException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidModelTypeException class with serialized data.

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

InvalidModelTypeException(Type)

Initializes a new instance of the InvalidModelTypeException class.

Declaration
public InvalidModelTypeException(Type modelType)
Parameters
Type Name Description
System.Type modelType

The model type that was invalid.

InvalidModelTypeException(Type, String)

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

Declaration
public InvalidModelTypeException(Type modelType, string message)
Parameters
Type Name Description
System.Type modelType

The model type that was invalid.

System.String message

The message that describes the error

Properties

ModelType

Gets the ModelType that contained the circular reference.

Declaration
public Type ModelType { get; }
Property Value
Type Description
System.Type

Extension Methods