UserDataAccountStore.CreateAccountAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateAccountAsync(String) |
异步创建用户数据帐户,指定可显示的用户名。 |
CreateAccountAsync(String, String) |
异步创建用户数据帐户,指定可显示的用户名和标识 Microsoft Store 中的应用的 GUID 。 |
CreateAccountAsync(String, String, String) |
异步创建用户数据帐户,指定可显示的用户名、标识 Microsoft Store 中的应用的 GUID 以及与用户帐户关联的企业标识。 |
CreateAccountAsync(String)
异步创建用户数据帐户,指定可显示的用户名。
public:
virtual IAsyncOperation<UserDataAccount ^> ^ CreateAccountAsync(Platform::String ^ userDisplayName) = CreateAccountAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserDataAccount> CreateAccountAsync(winrt::hstring const& userDisplayName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserDataAccount> CreateAccountAsync(string userDisplayName);
function createAccountAsync(userDisplayName)
Public Function CreateAccountAsync (userDisplayName As String) As IAsyncOperation(Of UserDataAccount)
参数
- userDisplayName
-
String
Platform::String
winrt::hstring
包含适合显示的用户名的字符串。
返回
返回新创建的 UserDataAccount。
- 属性
另请参阅
适用于
CreateAccountAsync(String, String)
public:
virtual IAsyncOperation<UserDataAccount ^> ^ CreateAccountAsync(Platform::String ^ userDisplayName, Platform::String ^ packageRelativeAppId) = CreateAccountAsync;
/// [Windows.Foundation.Metadata.Overload("CreateAccountWithPackageRelativeAppIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserDataAccount> CreateAccountAsync(winrt::hstring const& userDisplayName, winrt::hstring const& packageRelativeAppId);
[Windows.Foundation.Metadata.Overload("CreateAccountWithPackageRelativeAppIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserDataAccount> CreateAccountAsync(string userDisplayName, string packageRelativeAppId);
function createAccountAsync(userDisplayName, packageRelativeAppId)
Public Function CreateAccountAsync (userDisplayName As String, packageRelativeAppId As String) As IAsyncOperation(Of UserDataAccount)
参数
- userDisplayName
-
String
Platform::String
winrt::hstring
包含适合显示的用户名的字符串。
返回
返回新创建的 UserDataAccount。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
另请参阅
适用于
CreateAccountAsync(String, String, String)
public:
virtual IAsyncOperation<UserDataAccount ^> ^ CreateAccountAsync(Platform::String ^ userDisplayName, Platform::String ^ packageRelativeAppId, Platform::String ^ enterpriseId) = CreateAccountAsync;
/// [Windows.Foundation.Metadata.Overload("CreateAccountWithPackageRelativeAppIdAndEnterpriseIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserDataAccount> CreateAccountAsync(winrt::hstring const& userDisplayName, winrt::hstring const& packageRelativeAppId, winrt::hstring const& enterpriseId);
[Windows.Foundation.Metadata.Overload("CreateAccountWithPackageRelativeAppIdAndEnterpriseIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserDataAccount> CreateAccountAsync(string userDisplayName, string packageRelativeAppId, string enterpriseId);
function createAccountAsync(userDisplayName, packageRelativeAppId, enterpriseId)
Public Function CreateAccountAsync (userDisplayName As String, packageRelativeAppId As String, enterpriseId As String) As IAsyncOperation(Of UserDataAccount)
参数
- userDisplayName
-
String
Platform::String
winrt::hstring
包含适合显示的用户名的字符串。
- enterpriseId
-
String
Platform::String
winrt::hstring
与用户数据帐户关联的企业标识。
返回
返回新创建的 UserDataAccount。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|