Class ExternalConnectionCollection
Represents the collection of external connection
Inheritance
ExternalConnectionCollection
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class ExternalConnectionCollection : CollectionBaseEx<IConnection>, IConnections, IParentApplication, ICloneParent, IList<IConnection>, ICollection<IConnection>, IEnumerable<IConnection>, IEnumerable
Constructors
ExternalConnectionCollection(IApplication, object)
External connection collection
Declaration
public ExternalConnectionCollection(IApplication application, object parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplication | application | |
| 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 |
|---|---|---|
| string | connectionName | |
| string | description | |
| object | connectionString | |
| object | commandText | |
| ExcelCommandType | commandType |
Returns
| Type |
|---|
| IConnection |
Dispose()
Dispose the connection collection
Declaration
public void Dispose()