Share via


UserDataAccountSystemAccessManager.CreateDeviceAccountAsync Method

Definition

Note

This API is no longer supported and should not be called from your code.

Asynchronously creates a device account using the specified DeviceAccountConfiguration.

public:
 static IAsyncOperation<Platform::String ^> ^ CreateDeviceAccountAsync(DeviceAccountConfiguration ^ account);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<winrt::hstring> CreateDeviceAccountAsync(DeviceAccountConfiguration const& account);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> CreateDeviceAccountAsync(DeviceAccountConfiguration account);
function createDeviceAccountAsync(account)
Public Shared Function CreateDeviceAccountAsync (account As DeviceAccountConfiguration) As IAsyncOperation(Of String)

Parameters

account
DeviceAccountConfiguration

The configuration to use when creating the account.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Returns a string with the newly created device account ID.

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
userDataAccountsProvider

Applies to