Bagikan melalui


WebAccountProviderAddAccountOperation Kelas

Definisi

Mewakili operasi tambahkan akun.

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
Warisan
Object Platform::Object IInspectable WebAccountProviderAddAccountOperation
Atribut
Penerapan

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Contoh

Berikut ini menunjukkan cara menangani operasi tambahkan akun 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);
}

Properti

Kind

Mendapatkan jenis operasi penyedia akun web.

Metode

ReportCompleted()

Menginformasikan aplikasi aktivasi bahwa operasi berhasil diselesaikan.

Berlaku untuk

Lihat juga