次の方法で共有


UserDataAccountSystemAccessManager.SuppressLocalAccountWithAccountAsync メソッド

定義

指定したアカウントを使用して、既定のローカル アカウントを非同期的かつ一時的に置き換えます。

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 によって参照される新しいアカウントがデバイスに存在する間、既定のローカル アカウントは抑制されます。 その新しいアカウントが削除されると、ローカル アカウントがシステムに戻ります。

適用対象