UserDataAccountSystemAccessManager.CreateDeviceAccountAsync 方法

定义

注意

此 API 不再受支持,不应从代码调用。

使用指定的 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)

参数

account
DeviceAccountConfiguration

创建帐户时要使用的配置。

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

返回一个字符串,其中包含新创建的设备帐户 ID。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
userDataAccountsProvider

适用于