WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DuplicateNodeNameException - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    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: 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 Description
    System.String
    Overrides
    System.Exception.Message

    NodeName

    Gets node name that is duplicate.

    Declaration
    public string NodeName { get; }
    Property Value
    Type Description
    System.String

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved