Connections.AddFromFile2(String, Object, Object) 方法

定义

添加从指定文件的连接。

public Microsoft.Office.Interop.Excel.WorkbookConnection AddFromFile2 (string Filename, object CreateModelConnection, object ImportRelationships);
Public Function AddFromFile2 (Filename As String, Optional CreateModelConnection As Object, Optional ImportRelationships As Object) As WorkbookConnection

参数

Filename
String

文件的名称。

CreateModelConnection
Object

指定是否创建与模型的连接。

ImportRelationships
Object

指定是否导入连接关系。

返回

适用于