SecondaryAuthenticationFactorRegistration.UpdateDeviceConfigurationDataAsync Method

Definition

Updates the configuration data of a companion device.

Note

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.

public:
 static IAsyncAction ^ UpdateDeviceConfigurationDataAsync(Platform::String ^ deviceId, IBuffer ^ deviceConfigurationData);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction UpdateDeviceConfigurationDataAsync(winrt::hstring const& deviceId, IBuffer const& deviceConfigurationData);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorRegistration is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
 static IAsyncAction UpdateDeviceConfigurationDataAsync(winrt::hstring const& deviceId, IBuffer const& deviceConfigurationData);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction UpdateDeviceConfigurationDataAsync(string deviceId, IBuffer deviceConfigurationData);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorRegistration is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public static IAsyncAction UpdateDeviceConfigurationDataAsync(string deviceId, IBuffer deviceConfigurationData);
function updateDeviceConfigurationDataAsync(deviceId, deviceConfigurationData)
Public Shared Function UpdateDeviceConfigurationDataAsync (deviceId As String, deviceConfigurationData As IBuffer) As IAsyncAction

Parameters

deviceId
String

Platform::String

winrt::hstring

The Id of the device to update.

deviceConfigurationData
IBuffer

The updated configuration data. This data is capped at 4KB.

Returns

This method does not return a value.

Attributes

Applies to

See also