include: Add IJsonValueStatics interface definition.

This commit is contained in:
Mohamad Al-Jaf 2024-07-03 23:33:31 -04:00 committed by Alexandre Julliard
parent c490335df4
commit 4c81ee3f8a

View file

@ -114,6 +114,20 @@ namespace Windows.Data.Json {
HRESULT GetObject([out, retval] Windows.Data.Json.JsonObject **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Data.Json.JsonValue),
uuid(5f6b544a-2f53-48e1-91a3-f78b50a6345c)
]
interface IJsonValueStatics : IInspectable
{
HRESULT Parse([in] HSTRING input, [out, retval] Windows.Data.Json.JsonValue **value);
HRESULT TryParse([in] HSTRING input, [out] Windows.Data.Json.JsonValue **result, [out, retval] boolean *succeeded);
HRESULT CreateBooleanValue([in] boolean input, [out, retval] Windows.Data.Json.JsonValue **value);
HRESULT CreateNumberValue([in] DOUBLE input, [out, retval] Windows.Data.Json.JsonValue **value);
HRESULT CreateStringValue([in] HSTRING input, [out, retval] Windows.Data.Json.JsonValue **value);
}
[
activatable(Windows.Foundation.UniversalApiContract, 1.0),
contract(Windows.Foundation.UniversalApiContract, 1.0),