Share via


SqlJson Class

Definition

Represents the JSON datatype in SQL Server.

public ref class SqlJson : System::Data::SqlTypes::INullable
public class SqlJson : System.Data.SqlTypes.INullable
type SqlJson = class
    interface INullable
Public Class SqlJson
Implements INullable
Inheritance
SqlJson
Implements

Constructors

SqlJson()

Parameterless constructor. Initializes a new instance of the SqlJson class which represents a null JSON value.

SqlJson(JsonDocument)

Takes a JsonDocument as input and initializes a new instance of the SqlJson class.

SqlJson(String)

Takes a String as input and initializes a new instance of the SqlJson class.

Properties

IsNull

Indicates whether a structure is null. This property is read-only.

Null

Represents a null instance of the SqlJson type.

Value

Gets the string representation of the Json content of this SqlJson instance.

Applies to