WebAccountProviderAddAccountOperation Klasse

Definition

Stellt einen Vorgang zum Hinzufügen eines Kontos dar.

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
Vererbung
Object Platform::Object IInspectable WebAccountProviderAddAccountOperation
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Beispiele

Im Folgenden wird veranschaulicht, wie ein Vorgang zum Hinzufügen eines Webkontos behandelt wird:

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);
}

Eigenschaften

Kind

Ruft die Art des Webkontoanbietervorgangs ab.

Methoden

ReportCompleted()

Informiert die aktivierende App darüber, dass der Vorgang erfolgreich abgeschlossen wurde.

Gilt für:

Weitere Informationen