Share via


SqlDataRecord.GetSqlMetaData(Int32) Method

Definition

Returns a SqlMetaData object, describing the metadata of the column specified by the column ordinal.

public:
 virtual Microsoft::SqlServer::Server::SqlMetaData ^ GetSqlMetaData(int ordinal);
public virtual Microsoft.SqlServer.Server.SqlMetaData GetSqlMetaData (int ordinal);
abstract member GetSqlMetaData : int -> Microsoft.SqlServer.Server.SqlMetaData
override this.GetSqlMetaData : int -> Microsoft.SqlServer.Server.SqlMetaData
Public Overridable Function GetSqlMetaData (ordinal As Integer) As SqlMetaData

Parameters

ordinal
Int32

The zero-based ordinal of the column.

Returns

The column metadata as a SqlMetaData object.

Exceptions

The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

There is a type mismatch.

Applies to