Udostępnij za pośrednictwem


IJsonValue Interface

Definition

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

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

ValueType

Gets the type of the encapsulated JSON value. Possible types are defined by JsonValueType.

Methods

GetArray()

Returns a pointer to the array if the ValueType of the encapsulated value is Array. If it is not, an exception is thrown.

GetBoolean()

Returns the Boolean if the ValueType of the encapsulated value is Boolean. If it is not, an exception is thrown.

GetNumber()

Returns the number (a Double) if the ValueType of the encapsulated value is Number. If it is not, an exception is thrown.

GetObject()

Returns a pointer to the object if the ValueType of the encapsulated value is Object. If it is not, an exception is thrown.

GetString()

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.

Applies to