SqlDataReader.GetSqlJson(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 the value of the specified column as a SqlJson.
public:
virtual Microsoft::Data::SqlTypes::SqlJson ^ GetSqlJson(int i);
public virtual Microsoft.Data.SqlTypes.SqlJson GetSqlJson(int i);
abstract member GetSqlJson : int -> Microsoft.Data.SqlTypes.SqlJson
override this.GetSqlJson : int -> Microsoft.Data.SqlTypes.SqlJson
Public Overridable Function GetSqlJson (i As Integer) As SqlJson
Parameters
- i
- Int32
Returns
A SqlJson object representing the column at the given ordinal.
Remarks
No conversions are performed; therefore, the data retrieved must already be a JSON string, or an exception is generated.