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.
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
Existing properties are preserved. A minimal device record is created if needed. An empty namespace identifies the built-in namespace and isn’t valid for this operation. Use a distinct application-owned namespace instead. Saved-device APIs and pairing-ID APIs change different local stores. They don’t replace the explicitremoteDevice argument of a remote API call; callers that want default selection must resolve it themselves.
