Freigeben über


UserDataAccountStore.CreateAccountAsync Methode

Definition

Überlädt

CreateAccountAsync(String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername angegeben wird.

CreateAccountAsync(String, String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername und eine GUID angegeben werden , die die App im Microsoft Store identifiziert.

CreateAccountAsync(String, String, String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername, eine GUID , die die App im Microsoft Store identifiziert, und die dem Benutzerkonto zugeordnete Unternehmensidentität angibt.

CreateAccountAsync(String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername angegeben wird.

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)

Parameter

userDisplayName
String

Platform::String

winrt::hstring

Eine Zeichenfolge, die den für die Anzeige geeigneten Benutzernamen enthält.

Gibt zurück

Gibt das neu erstellte UserDataAccount zurück.

Attribute

Weitere Informationen

Gilt für:

CreateAccountAsync(String, String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername und eine GUID angegeben werden , die die App im Microsoft Store identifiziert.

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)

Parameter

userDisplayName
String

Platform::String

winrt::hstring

Eine Zeichenfolge, die den für die Anzeige geeigneten Benutzernamen enthält.

packageRelativeAppId
String

Platform::String

winrt::hstring

Die GUID , die die App im Microsoft Store identifiziert.

Gibt zurück

Gibt das neu erstellte UserDataAccount zurück.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Anniversary Edition (eingeführt in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v3.0)

Weitere Informationen

Gilt für:

CreateAccountAsync(String, String, String)

Erstellt asynchron ein Benutzerdatenkonto, wobei ein anzeigebarer Benutzername, eine GUID , die die App im Microsoft Store identifiziert, und die dem Benutzerkonto zugeordnete Unternehmensidentität angibt.

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)

Parameter

userDisplayName
String

Platform::String

winrt::hstring

Eine Zeichenfolge, die den für die Anzeige geeigneten Benutzernamen enthält.

packageRelativeAppId
String

Platform::String

winrt::hstring

Die GUID , die die App im Microsoft Store identifiziert.

enterpriseId
String

Platform::String

winrt::hstring

Die Dem Benutzerkonto zugeordnete Unternehmensidentität.

Gibt zurück

Gibt das neu erstellte UserDataAccount zurück.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)

Weitere Informationen

Gilt für: