SqlDataReader.GetSqlValue(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 the data value in the specified column as a SQL Server type.
public:
virtual System::Object ^ GetSqlValue(int i);
public:
System::Object ^ GetSqlValue(int i);
public virtual object GetSqlValue (int i);
public object GetSqlValue (int i);
abstract member GetSqlValue : int -> obj
override this.GetSqlValue : int -> obj
member this.GetSqlValue : int -> obj
Public Overridable Function GetSqlValue (i As Integer) As Object
Public Function GetSqlValue (i As Integer) As Object
Parameters
- i
- Int32
The zero-based column ordinal.
Returns
The value of the column expressed as a SqlDbType.
Remarks
GetSqlValue returns data using the native SQL Server types. To retrieve data using the .NET Framework types, see GetValue.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.