Class ExternalConnectionCollection
Represents the collection of external connection
Inheritance
System.Object
ExternalConnectionCollection
Implements
System.Collections.Generic.ICollection<IConnection>
System.Collections.Generic.IEnumerable<IConnection>
System.Collections.IEnumerable
System.Collections.Generic.IList<IConnection>
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.UWP.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
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
System.Collections.Generic.IList<>