MySqlConnector


MySqlDataReader.GetSchemaTableAsync method

Returns a DataTable that contains metadata about the columns in the result set.

public Task<DataTable> GetSchemaTableAsync(
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
cancellationTokenA token to cancel the operation.

Return Value

A DataTable containing metadata about the columns in the result set.

Remarks

This method runs synchronously; prefer to call GetSchemaTable to avoid the overhead of allocating an unnecessary Task.

See Also