Share via


JsonPrimitive Constructor (UInt32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of a JsonPrimitive type with a UInt32 type.

This API is not CLS-compliant. 

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Sub New ( _
    value As UInteger _
)
[CLSCompliantAttribute(false)]
public JsonPrimitive(
    uint value
)

Parameters

Remarks

A JsonPrimitive object stores a JsonType and the value used to initialize it. When initialized with a UInt32 object, the JsonType is a Number, which can be recovered using the JsonType property. The value used to initialize the JsonPrimitive object can be recovered using the ToString() method.

Examples

            'Initialize JSON primitive with a UInt32.
            Dim uInt32Number As System.UInt32 = 43
            Dim jsonP2 As New JsonPrimitive(uInt32Number)
//Initialize JSON primitive with a UInt32.
System.UInt32 uInt32Number = 43;
JsonPrimitive jsonP2 = new JsonPrimitive(uInt32Number);

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.