WorksheetDataConnection 接口

定义

用于将数据从工作表上的数据(如区域和表)导入数据模型。

public interface class WorksheetDataConnection
[System.Runtime.InteropServices.Guid("000244D2-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface WorksheetDataConnection
Public Interface WorksheetDataConnection
属性

属性

Application

返回表示 Application Excel 应用程序的 对象。 此为只读属性。

CommandText

返回或设置指定数据源的命令字符串。 C # 中的对象 (对象 ) 读/写。

CommandType

返回或设置其中 XlCmdType 一个常量。 对于 WorksheetDataConnection 对象,此类型将设置为 xlCmdExcel

Connection

返回 Excel 中对象的内部连接字符串。 C # 中的 对象 (对象 ) 只读。

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。 C#) 中的只读 整数 (int

Parent

在 C# ) 中返回一个 Object (对象 ,该对象表示指定 WorksheetDataConnection 对象的父对象。 此为只读属性。

适用于