Class DuplicateNodeNameException
Thrown when trying to add a node with a duplicate name into the model.
Inheritance
System.Object
System.Exception
DuplicateNodeNameException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.Data
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.SerializeObjectState
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class DuplicateNodeNameException : Exception, ISerializable, _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 |
Overrides
System.Exception.Message
NodeName
Gets node name that is duplicate.
Declaration
public string NodeName { get; }
Property Value
Type |
---|
System.String |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception