Syntax
Parameters
remoteDeviceType: const char* The saved device name or IP address, encoded as UTF-8. This operation acts on the current user’s local catalog.
metadataNamespaceType: const char* The UTF-8 application-owned namespace name. An empty string selects the built-in namespace where supported.
propertyNameType: const char* The UTF-8 property name.
valueJsonType: const char* One serialized JSON value, encoded as UTF-8.
Return value
Type: HRESULT ReturnsS_OK on success; otherwise returns a failure HRESULT. Catalog operations also return catalog-specific errors described in Error codes.
Remarks
Creates the device and namespace when needed.valueJson must contain one complete JSON value, with at most 125 nested object/array levels. A JSON string includes its quotation marks. An empty value is invalid; excessive nesting returns WD_E_DEVICE_JSONDEPTH.
For the built-in namespace (metadataNamespace == ""), only publicKeyHash can be changed. Stored records support at most 128 nested object/array levels.
Saved-device APIs and pairing-ID APIs change different local stores. They don’t replace the explicit remoteDevice argument of a remote API call; callers that want default selection must resolve it themselves.
