[]
获取所有将被用作 ImportData 参数源的表名和工作表名。
如果名称是表名,则在工作表名之前加上限定符,例如 "Sheet1!Table1"。
public static string[] GetNames(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | 文件的路径和名称。 |
| Type | Description |
|---|---|
| string[] | 可能的导入名称数组。 |
获取所有将被用作 ImportData 方法参数源的表格名和表名。
如果名称是表名,则在工作表名之前加上限定符,例如 "Sheet1!Table1"。
public static string[] GetNames(Stream fileStream)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 工作簿的文件流。 |
| Type | Description |
|---|---|
| string[] | 可能的导入名称数组。 |