Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

JsonPrimitive Constructor (Guid)

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

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)
public JsonPrimitive(
	Guid value
)

Parameters

value
Type: System.Guid
The Guid object that initializes the new instance.

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


//Initialize JSON primitive with an GUID.
Guid guid = new Guid();
JsonPrimitive jsonP6 = new JsonPrimitive(guid);


Silverlight

Supported in: 5, 4, 3

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.