UserDataAccountSystemAccessManager.SuppressLocalAccountWithAccountAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的帐户异步和暂时替换默认本地帐户。
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
参数
- userDataAccountId
-
String
Platform::String
winrt::hstring
用于临时替换默认本地帐户的帐户的用户 ID。
返回
返回指示操作已完成的异步操作。
- 属性
Windows 要求
| 要求 | 说明 |
|---|---|
| 设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
| 应用功能 |
userDataAccountsProvider
|
注解
当设备上存在 userDataAccountId 引用的新帐户时,默认本地帐户将被禁止显示。 删除该新帐户后,本地帐户会弹出回系统。