Connections.AddFromFile(String) 方法

定义

添加从指定文件的连接。

public:
 Microsoft::Office::Interop::Excel::WorkbookConnection ^ AddFromFile(System::String ^ Filename);
public Microsoft.Office.Interop.Excel.WorkbookConnection AddFromFile (string Filename);
Public Function AddFromFile (Filename As String) As WorkbookConnection

参数

Filename
String

文件的名称。

返回

WorkbookConnection

适用于