UserDataAccountSystemAccessManager UserDataAccountSystemAccessManager UserDataAccountSystemAccessManager UserDataAccountSystemAccessManager Class

Definition

Provides the ability to display the system UI for managing sync relationships.

public : static class UserDataAccountSystemAccessManagerpublic static class UserDataAccountSystemAccessManagerPublic Static Class UserDataAccountSystemAccessManager// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
userDataAccountsProvider

Remarks

This is a static class.

Methods

AddAndShowDeviceAccountsAsync(IIterable) AddAndShowDeviceAccountsAsync(IIterable) AddAndShowDeviceAccountsAsync(IIterable) AddAndShowDeviceAccountsAsync(IIterable)

Asynchronously displays the system UI to manage the sync relationships for the specified accounts.

public : static IAsyncOperation<IVectorView<PlatForm::String>> AddAndShowDeviceAccountsAsync(IIterable<DeviceAccountConfiguration> accounts)public static IAsyncOperation<IReadOnlyList<string>> AddAndShowDeviceAccountsAsync(IEnumerable<DeviceAccountConfiguration> accounts)Public Static Function AddAndShowDeviceAccountsAsync(accounts As IEnumerable<DeviceAccountConfiguration>) As IAsyncOperation( Of IReadOnlyListstring )// You can use this method in JavaScript.
Parameters
accounts
IIterable<DeviceAccountConfiguration> IEnumerable<DeviceAccountConfiguration> IEnumerable<DeviceAccountConfiguration> IEnumerable<DeviceAccountConfiguration>

The list of accounts to manage in the system UI.

Returns
IAsyncOperation<IVectorView<PlatForm::String>> IAsyncOperation<IReadOnlyList<string>> IAsyncOperation<IReadOnlyList<string>> IAsyncOperation<IReadOnlyList<string>>

Returns an updated list of accounts.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
userDataAccountsProvider

CreateDeviceAccountAsync(DeviceAccountConfiguration) CreateDeviceAccountAsync(DeviceAccountConfiguration) CreateDeviceAccountAsync(DeviceAccountConfiguration) CreateDeviceAccountAsync(DeviceAccountConfiguration)

Asynchronously creates a device account using the specified DeviceAccountConfiguration.

public : static IAsyncOperation<PlatForm::String> CreateDeviceAccountAsync(DeviceAccountConfiguration account)public static IAsyncOperation<string> CreateDeviceAccountAsync(DeviceAccountConfiguration account)Public Static Function CreateDeviceAccountAsync(account As DeviceAccountConfiguration) As IAsyncOperation( Of string )// You can use this method in JavaScript.
Parameters
Returns

Returns a string with the newly created device account ID.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
userDataAccountsProvider

DeleteDeviceAccountAsync(String) DeleteDeviceAccountAsync(String) DeleteDeviceAccountAsync(String) DeleteDeviceAccountAsync(String)

Asynchronously deletes the specified device account.

public : static IAsyncAction DeleteDeviceAccountAsync(PlatForm::String accountId)public static IAsyncAction DeleteDeviceAccountAsync(String accountId)Public Static Function DeleteDeviceAccountAsync(accountId As String) As IAsyncAction// You can use this method in JavaScript.
Parameters
accountId
PlatForm::String String String String

The ID of the device account to delete.

Returns

Returns an async action indicating that the operation has completed.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
userDataAccountsProvider

GetDeviceAccountConfigurationAsync(String) GetDeviceAccountConfigurationAsync(String) GetDeviceAccountConfigurationAsync(String) GetDeviceAccountConfigurationAsync(String)

Asynchronously gets the DeviceAccountConfiguration for the specified device account.

public : static IAsyncOperation<DeviceAccountConfiguration> GetDeviceAccountConfigurationAsync(PlatForm::String accountId)public static IAsyncOperation<DeviceAccountConfiguration> GetDeviceAccountConfigurationAsync(String accountId)Public Static Function GetDeviceAccountConfigurationAsync(accountId As String) As IAsyncOperation( Of DeviceAccountConfiguration )// You can use this method in JavaScript.
Parameters
accountId
PlatForm::String String String String

The ID for the device account.

Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
userDataAccountsProvider

SuppressLocalAccountWithAccountAsync(String) SuppressLocalAccountWithAccountAsync(String) SuppressLocalAccountWithAccountAsync(String) SuppressLocalAccountWithAccountAsync(String)

Asynchronously, and temporarily, replaces the default local account by using the specified account.

public : static IAsyncAction SuppressLocalAccountWithAccountAsync(PlatForm::String userDataAccountId)public static IAsyncAction SuppressLocalAccountWithAccountAsync(String userDataAccountId)Public Static Function SuppressLocalAccountWithAccountAsync(userDataAccountId As String) As IAsyncAction// You can use this method in JavaScript.
Parameters
userDataAccountId
PlatForm::String String String String

The user ID of the account used to temporarily replace the default local account.

Returns

Returns an async action indicating that the operation has completed.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
userDataAccountsProvider

Remarks

The default local account is suppressed while the new account, referenced by userDataAccountId, is present on the device. When that new account is deleted, the local account pops back into the system.