WebAccountProviderAddAccountOperation クラス

定義

アカウントの追加操作を表します。

public ref class WebAccountProviderAddAccountOperation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WebAccountProviderAddAccountOperation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WebAccountProviderAddAccountOperation
Public NotInheritable Class WebAccountProviderAddAccountOperation
継承
Object Platform::Object IInspectable WebAccountProviderAddAccountOperation
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

Web アカウントの追加操作を処理する方法を次に示します。

WebAccountProviderAddAccountOperation operation;
protected override void OnNavigatedTo(NavigationEventArgs e)
{
    operation = (WebAccountProviderAddAccountOperation)e.Parameter;
    base.OnNavigatedTo(e);
}

private async void DoneAddAccountButton_Click(object sender, RoutedEventArgs e)
{
    Dictionary<string, string> properties = new Dictionary<string, string>();
    properties.Add(this.PropKeyTextBox.Text, this.PropValueTextBox.Text);
    WebAccount newAccount = await WebAccountManager.AddWebAccountAsync(this.AccountIdTextBox.Text, 
                                this.UserNameTextBox.Text, properties);
}

プロパティ

Kind

Web アカウント プロバイダー操作の種類を取得します。

メソッド

ReportCompleted()

操作が正常に完了したことをアクティブ化しているアプリに通知します。

適用対象

こちらもご覧ください