Class DuplicateNodeNameException
Thrown when trying to add a node with a duplicate name into the model.
Inheritance
System.Object
DuplicateNodeNameException
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class DuplicateNodeNameException : Exception
Constructors
DuplicateNodeNameException(String)
Initializes a new instance of the DuplicateNodeNameException class.
Declaration
public DuplicateNodeNameException(string nodeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | nodeName | Name of the node. |
Remarks
A node's name must be unique within the scope of its parent. This exception is thrown by the model only if it cannot auto-generate a unique name by appending numeric suffixes to the name.
Properties
Message
Returns the error message for this exception.
Declaration
public override string Message { get; }
Property Value
| Type |
|---|
| System.String |
NodeName
Gets node name that is duplicate.
Declaration
public string NodeName { get; }
Property Value
| Type |
|---|
| System.String |