Class ExcelConnection¶
Namespace: OfficeOpenXml.Data.Connection
Assembly: EPPlus.dll
Represents a connection to an external data source in a workbook.
Inheritance¶
object ← DocumentPart<ExcelConnection> ← ExcelConnection
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
AutoDelete¶
If the connection should be automatically deleted when all data features which use it are deleted.
Property Value¶
AutomaticRefreshInterval¶
Specifies the interval, in minutes, at which the connection is automatically refreshed. A value of 0 means that the connection is not automatically refreshed.
Property Value¶
Credentials¶
How the connection should handle credentials.
Property Value¶
DataModel¶
If the connection is a data model connection, this property contains data model specific properties.
Property Value¶
DatabaseProperties¶
Database specific properties for the connection. This property is null if the connection is not a database or olap connection.
Property Value¶
Description¶
A description of the connection.
Property Value¶
ExcludeFromRefreshAll¶
If the connection is not to be refreshed on Refresh All.
Property Value¶
Id¶
Gets or sets the unique identifier for the connection.
Property Value¶
IsBackground¶
If the connection can be refreshed in the background.
Property Value¶
IsDeleted¶
If the connection has been deleted.
Property Value¶
IsNew¶
If the connection has been refreshed for the first time
Property Value¶
KeepAlive¶
If true, the connection should be kept alive by the spreadsheet application.
Property Value¶
LastRefreshVersion¶
The version of the spreadsheet application when the connection was last refreshed.
Property Value¶
MinimumRefreshableVersion¶
The minimum version of the spreadsheet application that can refresh the connection.
Property Value¶
Name¶
Gets or sets the name associated with the connection. Each connection should have a unique name.
Property Value¶
OdcFile¶
The full external path to the ODC file from which the connection was created.
Property Value¶
OlapProperties¶
Olap specific properties for the connection. This property is null if the connection is not an olap connection.
Property Value¶
OnlyUseConnectionFile¶
If the spreadsheet application should always and only use the connection information in the external connection file indicated by the OdcFile when the connection is refreshed.
Property Value¶
Parameters¶
Parameters for the connection.
Property Value¶
ReconnectionMethod¶
How the connection should reconnect when the connection fails
Property Value¶
RefreshOnLoad¶
If the connection should be refreshed when the workbook is loaded.
Property Value¶
SaveData¶
If data fetched by the connection should be saved in the workbook. Default false.
Property Value¶
SavePassword¶
If the password for the connection should be saved in the workbook. Default false.
Property Value¶
SingleSignOnId¶
SSO id used for authentication for the connection.
Property Value¶
SourceDatabaseFile¶
Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file.Can be expressed in URI or system-specific file path notation.
Property Value¶
TextProperties¶
Text specific properties for the connection. This property is null if the conenction is not a text connection.
Property Value¶
Type¶
The type of data source for the connection. 1. ODBC-based source 2. DAO-based source 3. ApplicationDefined 4. Web query 5. OLEDB-based source. 6. Text-based source 7. ADO-based source 8. DSP-Document Source Provider 100-Data Model - OLEDB 101-Data Model - Data feed 102-Data Model - Worksheet Data 103-Data Model - Text data
Property Value¶
UsedByAddin¶
If the connection is used by an addin component and will not be deleted with any data feature that uses it.
Property Value¶
WebProperties¶
Web specific properties for the connection. This property is null if the connection is not a web connection.