UserDataAccountStore.CreateAccountAsync Method

Definition

Overloads

CreateAccountAsync(String)

Asynchronously creates a user data account, specifying a displayable user name.

CreateAccountAsync(String, String)

Asynchronously creates a user data account, specifying a displayable user name and a GUID that identifies the app in the Microsoft Store.

CreateAccountAsync(String, String, String)

Asynchronously creates a user data account, specifying a displayable user name, a GUID that identifies the app in the Microsoft Store, and the enterprise identity associated with the user account.

CreateAccountAsync(String)

Asynchronously creates a user data account, specifying a displayable user name.

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)

Parameters

userDisplayName
String

Platform::String

winrt::hstring

A string containing the user name that is suitable for display.

Returns

Returns the newly created UserDataAccount.

Attributes

See also

Applies to

CreateAccountAsync(String, String)

Asynchronously creates a user data account, specifying a displayable user name and a GUID that identifies the app in the Microsoft Store.

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)

Parameters

userDisplayName
String

Platform::String

winrt::hstring

A string containing the user name that is suitable for display.

packageRelativeAppId
String

Platform::String

winrt::hstring

The GUID that identifies the app in the Microsoft Store.

Returns

Returns the newly created UserDataAccount.

Attributes

Windows requirements

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

See also

Applies to

CreateAccountAsync(String, String, String)

Asynchronously creates a user data account, specifying a displayable user name, a GUID that identifies the app in the Microsoft Store, and the enterprise identity associated with the user account.

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)

Parameters

userDisplayName
String

Platform::String

winrt::hstring

A string containing the user name that is suitable for display.

packageRelativeAppId
String

Platform::String

winrt::hstring

The GUID that identifies the app in the Microsoft Store.

enterpriseId
String

Platform::String

winrt::hstring

The enterprise identity associated with the user data account.

Returns

Returns the newly created UserDataAccount.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

See also

Applies to