VB.Net スクリプト ファイルに関数がありますが、「'CopyToDataTable' は 'system.array' のメンバーではありません」というエラーが発生します。何か案は?
Public Function CollectionFromTable(tableName As String, sql As String, sortOrder As String) As DataTable
Dim foundRows() As DataRow
foundRows = ds.Tables(tableName).Select(sql, sortOrder)
Return foundRows.CopyToDataTable
End Function
注:上部に次のインポートがありますが、それでもエラーが発生します。
Imports System
Imports System.Data
Imports System.Windows.Forms
Imports System.Math
Imports Microsoft.VisualBasic
Imports System.Collections.Generic
Imports System.Data.DataRow
Imports System.Linq
Imports System.Drawing
Imports System.Xml
Imports System.Collections