menu

Document Processing

ExternalConnectionCollection Class - C# Excel Library API Reference | Syncfusion

    Show / Hide Table of Contents

    ExternalConnectionCollection Class

    Represents the collection of external connection

    Inheritance
    System.Object
    Syncfusion.XlsIO.Implementation.Collections.CollectionBase<IConnection>
    Syncfusion.XlsIO.Implementation.Collections.CollectionBaseEx<IConnection>
    ExternalConnectionCollection
    Implements
    IConnections
    IParentApplication
    System.Collections.Generic.ICollection<IConnection>
    System.Collections.Generic.IEnumerable<IConnection>
    System.Collections.IEnumerable
    ICloneParent
    System.Collections.Generic.IList<IConnection>
    Namespace: Syncfusion.XlsIO.Implementation
    Assembly: Syncfusion.XlsIO.Base.dll
    Syntax
    public class ExternalConnectionCollection : CollectionBaseEx<IConnection>, IConnections, IParentApplication, ICollection<IConnection>, IEnumerable<IConnection>, IEnumerable, ICloneParent, IList<IConnection>

    Constructors

    ExternalConnectionCollection(IApplication, Object)

    External connection collection

    Declaration
    public ExternalConnectionCollection(IApplication application, object parent)
    Parameters
    Type Name Description
    IApplication application
    System.Object parent

    Methods

    Add(ExcelConnectionsType)

    Add connection

    Declaration
    public IConnection Add(ExcelConnectionsType Type)
    Parameters
    Type Name Description
    ExcelConnectionsType Type
    Returns
    Type
    IConnection

    Add(String, String, Object, Object, ExcelCommandType)

    Connection added to workbook

    Declaration
    public IConnection Add(string connectionName, string description, object connectionString, object commandText, ExcelCommandType commandType)
    Parameters
    Type Name Description
    System.String connectionName
    System.String description
    System.Object connectionString
    System.Object commandText
    ExcelCommandType commandType
    Returns
    Type
    IConnection

    AddFromFile(String, String)

    Add connection frm file

    Declaration
    public IConnection AddFromFile(string Name, string FilePath)
    Parameters
    Type Name Description
    System.String Name
    System.String FilePath
    Returns
    Type
    IConnection

    Dispose()

    Dispose the connection collection

    Declaration
    public void Dispose()

    Implements

    IConnections
    IParentApplication
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    ICloneParent
    System.Collections.Generic.IList<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved