SqlDataReader.GetDataTypeName(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.
Gets a string representing the data type of the specified column.
public:
override System::String ^ GetDataTypeName(int i);
public:
virtual System::String ^ GetDataTypeName(int i);
public override string GetDataTypeName (int i);
public string GetDataTypeName (int i);
override this.GetDataTypeName : int -> string
abstract member GetDataTypeName : int -> string
override this.GetDataTypeName : int -> string
Public Overrides Function GetDataTypeName (i As Integer) As String
Public Function GetDataTypeName (i As Integer) As String
Parameters
- i
- Int32
The zero-based ordinal position of the column to find.
Returns
The string representing the data type of the specified column.
Implements
Remarks
Returns the name of the back-end data type.
numeric
is a synonym in SQL Server for the decimal
data type. GetDataTypeName
will return "decimal" for a column defined as either decimal or numeric.
Applies to
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.