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

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

Applies to

JsonPrimitive(UInt64)

Important

This API is not CLS-compliant.

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

Parameters

value
UInt64
Attributes

Applies to

JsonPrimitive(UInt32)

Important

This API is not CLS-compliant.

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

Parameters

value
UInt32
Attributes

Applies to

JsonPrimitive(UInt16)

Important

This API is not CLS-compliant.

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

Parameters

value
UInt16
Attributes

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

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

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

Applies to

JsonPrimitive(SByte)

Important

This API is not CLS-compliant.

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

Parameters

value
SByte
Attributes

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

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

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

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

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

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

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

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

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

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

Applies to