Class InvalidModelTypeException
Exception class thrown when an invalid model type was found.
Inheritance
System.Object
System.Exception
System.SystemException
System.NotSupportedException
InvalidModelTypeException
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.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public class InvalidModelTypeException : NotSupportedException, ISerializable, _Exception
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 |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception