Class NameAlreadyExistsException
- Namespace
- CADability
- Assembly
- CADability.dll
Thrown when the name of an object (e.g. a layer or a colour) is changed and the list that holds the object (e.g. the LayerList), in which names must be unique, already contains an object with that name. The user interface catches this exception when a name is edited and restores the old name.
public class NameAlreadyExistsException : Exception, ISerializable
- Inheritance
-
NameAlreadyExistsException
- Implements
- Inherited Members
Constructors
NameAlreadyExistsException(object, object, string)
public NameAlreadyExistsException(object ContainingList, object OffendingObject, string NewName)
Parameters
NameAlreadyExistsException(object, object, string, string)
public NameAlreadyExistsException(object ContainingList, object OffendingObject, string NewName, string OldName)
Parameters
Fields
ContainingList
The list that contains the object and that already contains another object with the new name
public object ContainingList
Field Value
NewName
The new name that was attempted to be set
public string NewName
Field Value
OffendingObject
The object (e.g. a layer) whose renaming caused the conflict
public object OffendingObject
Field Value
OldName
The old name, which was valid
public string OldName