menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DuplicateLayerNameException - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DuplicateLayerNameException

    Thrown when trying to add a layer with a duplicate name into the model.

    Inheritance
    System.Object
    System.Exception
    DuplicateLayerNameException
    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 DuplicateLayerNameException : Exception, ISerializable, _Exception

    Constructors

    DuplicateLayerNameException(String)

    Initializes a new instance of the DuplicateLayerNameException class.

    Declaration
    public DuplicateLayerNameException(string layerName)
    Parameters
    Type Name Description
    System.String layerName

    Name of the layer.

    Properties

    LayerName

    Gets layer name that is duplicate.

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

    Message

    Returns the error message for this exception.

    Declaration
    public override string Message { get; }
    Property Value
    Type
    System.String
    Overrides
    System.Exception.Message

    Implements

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