UserDataAccountSystemAccessManager.SuppressLocalAccountWithAccountAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Remplace de façon asynchrone et temporaire le compte local par défaut à l’aide du compte spécifié.
public:
static IAsyncAction ^ SuppressLocalAccountWithAccountAsync(Platform::String ^ userDataAccountId);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncAction SuppressLocalAccountWithAccountAsync(winrt::hstring const& userDataAccountId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SuppressLocalAccountWithAccountAsync(string userDataAccountId);
function suppressLocalAccountWithAccountAsync(userDataAccountId)
Public Shared Function SuppressLocalAccountWithAccountAsync (userDataAccountId As String) As IAsyncAction
Paramètres
- userDataAccountId
-
String
Platform::String
winrt::hstring
ID d’utilisateur du compte utilisé pour remplacer temporairement le compte local par défaut.
Retours
Retourne une action asynchrone indiquant que l’opération est terminée.
- Attributs
Configuration requise pour Windows
Famille d’appareils |
Windows 10 Anniversary Edition (introduit dans 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduit dans v3.0)
|
Fonctionnalités de l’application |
userDataAccountsProvider
|
Remarques
Le compte local par défaut est supprimé tandis que le nouveau compte, référencé par userDataAccountId, est présent sur l’appareil. Lorsque ce nouveau compte est supprimé, le compte local revient dans le système.