Class DuplicatedPropertyException
Represents the exception thrown when registering a property but it exists already other property which has same name but different type and it can not be converted to the new one.
Inheritance
System.Object
System.Exception
DuplicatedPropertyException
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: Mediachase.Commerce.Engine
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class DuplicatedPropertyException : Exception, ISerializable, _Exception
Constructors
DuplicatedPropertyException(String, Type, Type)
Initializes an instance of DuplicatedPropertyException class.
Declaration
public DuplicatedPropertyException(string propertyName, Type existingType, Type newType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of property which causes the exception. |
System.Type | existingType | The existing type of property which causes the exception. |
System.Type | newType | The new type of property which causes the exception. |
Properties
ApplyingType
Gets the type applying to the value of property.
Declaration
public Type ApplyingType { get; }
Property Value
Type | Description |
---|---|
System.Type |
PropertyName
Gets the name of property.
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
System.String |
RegisteredType
Gets the registered type of property.
Declaration
public Type RegisteredType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception