Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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
DuplicatedPropertyException
Namespace: Mediachase.Commerce.Engine
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class DuplicatedPropertyException : 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