IJsonValue Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates a JSON value.
public interface class IJsonValue
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2736889547, 61619, 19917, 190, 238, 25, 212, 140, 211, 237, 30)]
struct IJsonValue
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2736889547, 61619, 19917, 190, 238, 25, 212, 140, 211, 237, 30)]
public interface IJsonValue
Public Interface IJsonValue
- Derived
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Value |
Gets the type of the encapsulated JSON value. Possible types are defined by JsonValueType. |
Get |
Returns a pointer to the array if the ValueType of the encapsulated value is Array. If it is not, an exception is thrown. |
Get |
Returns the Boolean if the ValueType of the encapsulated value is Boolean. If it is not, an exception is thrown. |
Get |
Returns the number (a Double) if the ValueType of the encapsulated value is Number. If it is not, an exception is thrown. |
Get |
Returns a pointer to the object if the ValueType of the encapsulated value is Object. If it is not, an exception is thrown. |
Get |
Returns the String if the ValueType of the encapsulated value is String. If it is not, an exception is thrown. |
Stringify() |
Retrieves the JSON representation of the encapsulated value. |