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
System.Collections.Generic.IList<IConnection>
System.Collections.Generic.ICollection<IConnection>
System.Collections.Generic.IEnumerable<IConnection>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Base.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 | |
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.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable