Share via


DialReceiverApp.SetAdditionalDataAsync Method

Definition

Used by the server app to send a set of data in key/value pairs to the DIAL REST service so that it can be queried from a client app.

public:
 virtual IAsyncAction ^ SetAdditionalDataAsync(IIterable<IKeyValuePair<Platform::String ^, Platform::String ^> ^> ^ additionalData) = SetAdditionalDataAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetAdditionalDataAsync(IIterable<IKeyValuePair<winrt::hstring, winrt::hstring const&>> const& additionalData);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetAdditionalDataAsync(IEnumerable<KeyValuePair<string,string>> additionalData);
function setAdditionalDataAsync(additionalData)
Public Function SetAdditionalDataAsync (additionalData As IEnumerable(Of KeyValuePair(Of String, String))) As IAsyncAction

Parameters

additionalData

IIterable<IKeyValuePair<String,String>>

IEnumerable<KeyValuePair<String,String>>

IIterable<IKeyValuePair<Platform::String,Platform::String>>

IIterable<IKeyValuePair<winrt::hstring,winrt::hstring>>

The set of key/value pairs to send to the DIAL REST service.

Returns

Clients retrieve the additional data by making an HTTP GET request to the DIAL REST service application URL.  UWP client apps can perform this task by calling DialDevice.GetDialApp followed by DialApp.GetAppStateAsync, and then accessing the DialAppStateDetails.FullXml property to retrieve the additional data.  The additional data is added to the DIAL app XML in accordance with the DIAL specification.

Attributes

Applies to