TableOperationsTToDataTableAsync Method
Converts the given collection of records into a DataTable.
Namespace: Gemstone.Data.ModelAssembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.137 -- Release Build+bf396311d630d9a0959afedb17412b40a2acb327
public Task<DataTable> ToDataTableAsync(
IAsyncEnumerable<T> records,
CancellationToken cancellationToken
)
Public Function ToDataTableAsync (
records As IAsyncEnumerable(Of T),
cancellationToken As CancellationToken
) As Task(Of DataTable)
public:
Task<DataTable^>^ ToDataTableAsync(
IAsyncEnumerable<T>^ records,
CancellationToken cancellationToken
)
function ToDataTableAsync(records, cancellationToken);
- records IAsyncEnumerableT
- The collection of records to be inserted into the data table.
- cancellationToken CancellationToken
- Propagates notification that operations should be canceled.
TaskDataTableA data table containing data from the given records.