Edit

Share via


JsonPrimitive Constructors

Definition

Overloads

JsonPrimitive(Boolean)
JsonPrimitive(Uri)
JsonPrimitive(UInt64)
JsonPrimitive(UInt32)
JsonPrimitive(UInt16)
JsonPrimitive(TimeSpan)
JsonPrimitive(String)
JsonPrimitive(Single)
JsonPrimitive(SByte)
JsonPrimitive(Int64)
JsonPrimitive(Int16)
JsonPrimitive(Guid)
JsonPrimitive(Double)
JsonPrimitive(Decimal)
JsonPrimitive(DateTimeOffset)
JsonPrimitive(DateTime)
JsonPrimitive(Char)
JsonPrimitive(Byte)
JsonPrimitive(Int32)

JsonPrimitive(Boolean)

public:
 JsonPrimitive(bool value);
public JsonPrimitive (bool value);
new System.Json.JsonPrimitive : bool -> System.Json.JsonPrimitive
Public Sub New (value As Boolean)

Parameters

value
Boolean

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Uri)

public:
 JsonPrimitive(Uri ^ value);
public JsonPrimitive (Uri value);
new System.Json.JsonPrimitive : Uri -> System.Json.JsonPrimitive
Public Sub New (value As Uri)

Parameters

value
Uri

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(UInt64)

Important

This API is not CLS-compliant.

public:
 JsonPrimitive(System::UInt64 value);
[System.CLSCompliant(false)]
public JsonPrimitive (ulong value);
[<System.CLSCompliant(false)>]
new System.Json.JsonPrimitive : uint64 -> System.Json.JsonPrimitive
Public Sub New (value As ULong)

Parameters

value
UInt64
Attributes

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(UInt32)

Important

This API is not CLS-compliant.

public:
 JsonPrimitive(System::UInt32 value);
[System.CLSCompliant(false)]
public JsonPrimitive (uint value);
[<System.CLSCompliant(false)>]
new System.Json.JsonPrimitive : uint32 -> System.Json.JsonPrimitive
Public Sub New (value As UInteger)

Parameters

value
UInt32
Attributes

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(UInt16)

Important

This API is not CLS-compliant.

public:
 JsonPrimitive(System::UInt16 value);
[System.CLSCompliant(false)]
public JsonPrimitive (ushort value);
[<System.CLSCompliant(false)>]
new System.Json.JsonPrimitive : uint16 -> System.Json.JsonPrimitive
Public Sub New (value As UShort)

Parameters

value
UInt16
Attributes

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(TimeSpan)

public:
 JsonPrimitive(TimeSpan value);
public JsonPrimitive (TimeSpan value);
new System.Json.JsonPrimitive : TimeSpan -> System.Json.JsonPrimitive
Public Sub New (value As TimeSpan)

Parameters

value
TimeSpan

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(String)

public:
 JsonPrimitive(System::String ^ value);
public JsonPrimitive (string value);
new System.Json.JsonPrimitive : string -> System.Json.JsonPrimitive
Public Sub New (value As String)

Parameters

value
String

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Single)

public:
 JsonPrimitive(float value);
public JsonPrimitive (float value);
new System.Json.JsonPrimitive : single -> System.Json.JsonPrimitive
Public Sub New (value As Single)

Parameters

value
Single

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(SByte)

Important

This API is not CLS-compliant.

public:
 JsonPrimitive(System::SByte value);
[System.CLSCompliant(false)]
public JsonPrimitive (sbyte value);
[<System.CLSCompliant(false)>]
new System.Json.JsonPrimitive : sbyte -> System.Json.JsonPrimitive
Public Sub New (value As SByte)

Parameters

value
SByte
Attributes

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Int64)

public:
 JsonPrimitive(long value);
public JsonPrimitive (long value);
new System.Json.JsonPrimitive : int64 -> System.Json.JsonPrimitive
Public Sub New (value As Long)

Parameters

value
Int64

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Int16)

public:
 JsonPrimitive(short value);
public JsonPrimitive (short value);
new System.Json.JsonPrimitive : int16 -> System.Json.JsonPrimitive
Public Sub New (value As Short)

Parameters

value
Int16

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Guid)

public:
 JsonPrimitive(Guid value);
public JsonPrimitive (Guid value);
new System.Json.JsonPrimitive : Guid -> System.Json.JsonPrimitive
Public Sub New (value As Guid)

Parameters

value
Guid

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Double)

public:
 JsonPrimitive(double value);
public JsonPrimitive (double value);
new System.Json.JsonPrimitive : double -> System.Json.JsonPrimitive
Public Sub New (value As Double)

Parameters

value
Double

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Decimal)

public:
 JsonPrimitive(System::Decimal value);
public JsonPrimitive (decimal value);
new System.Json.JsonPrimitive : decimal -> System.Json.JsonPrimitive
Public Sub New (value As Decimal)

Parameters

value
Decimal

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(DateTimeOffset)

public:
 JsonPrimitive(DateTimeOffset value);
public JsonPrimitive (DateTimeOffset value);
new System.Json.JsonPrimitive : DateTimeOffset -> System.Json.JsonPrimitive
Public Sub New (value As DateTimeOffset)

Parameters

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(DateTime)

public:
 JsonPrimitive(DateTime value);
public JsonPrimitive (DateTime value);
new System.Json.JsonPrimitive : DateTime -> System.Json.JsonPrimitive
Public Sub New (value As DateTime)

Parameters

value
DateTime

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Char)

public:
 JsonPrimitive(char value);
public JsonPrimitive (char value);
new System.Json.JsonPrimitive : char -> System.Json.JsonPrimitive
Public Sub New (value As Char)

Parameters

value
Char

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Byte)

public:
 JsonPrimitive(System::Byte value);
public JsonPrimitive (byte value);
new System.Json.JsonPrimitive : byte -> System.Json.JsonPrimitive
Public Sub New (value As Byte)

Parameters

value
Byte

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

JsonPrimitive(Int32)

public:
 JsonPrimitive(int value);
public JsonPrimitive (int value);
new System.Json.JsonPrimitive : int -> System.Json.JsonPrimitive
Public Sub New (value As Integer)

Parameters

value
Int32

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to