SqlDataRecord.GetSqlMetaData(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a SqlMetaData object, describing the metadata of the column specified by the column ordinal.
public:
virtual Microsoft::Data::SqlClient::Server::SqlMetaData ^ GetSqlMetaData(int ordinal);
public virtual Microsoft.Data.SqlClient.Server.SqlMetaData GetSqlMetaData (int ordinal);
abstract member GetSqlMetaData : int -> Microsoft.Data.SqlClient.Server.SqlMetaData
override this.GetSqlMetaData : int -> Microsoft.Data.SqlClient.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.