Editare

Partajați prin


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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs

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)

Source:
JsonPrimitive.cs

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)

Source:
JsonPrimitive.cs

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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs

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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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)

Source:
JsonPrimitive.cs
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