Vb.net ExcelDataReader配置数据表错误

Vb.net ExcelDataReader配置数据表错误,vb.net,exceldatareader,Vb.net,Exceldatareader,我正在尝试将.asDataSet()与以下配置一起使用: Dim x_config As New ExcelDataSetConfiguration Dim table_config As New ExcelDataTableConfiguration With { .UseHeaderRow = True

我正在尝试将
.asDataSet()
与以下配置一起使用:

Dim x_config As New ExcelDataSetConfiguration
Dim table_config As New ExcelDataTableConfiguration With {
                                                            .UseHeaderRow = True
                                                         }
x_config.UseColumnDataType = True
x_config.ConfigureDataTable = table_config
'ERROR: Value of type 'ExcelDataTableConfiguration' &_
'cannot be converted to 'Func(Of IExcelDataReader, ExcelDataTableConfiguration)'.

basis_data = reader.AsDataSet(x_config)

我做错了什么

将ConfigureDataTable更改为此

x_config.ConfigureDataTable = Function(tableReader) New ExcelDataTableConfiguration() With {
     .UseHeaderRow = True
    }

将ConfigureDataTable更改为此

x_config.ConfigureDataTable = Function(tableReader) New ExcelDataTableConfiguration() With {
     .UseHeaderRow = True
    }