MySqlConnector


MySqlDataReader.GetColumnSchemaAsync method

Returns metadata about the columns in the result set.

public Task<ReadOnlyCollection<DbColumn>> GetColumnSchemaAsync(
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
cancellationTokenA token to cancel the operation.

Return Value

A Task containing ReadOnlyCollection containing metadata about the result set.

Remarks

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

See Also