WebAccountProviderAddAccountOperation WebAccountProviderAddAccountOperation WebAccountProviderAddAccountOperation WebAccountProviderAddAccountOperation Class

Definition

Represents an add account operation.

public : sealed class WebAccountProviderAddAccountOperation : IWebAccountProviderAddAccountOperation, IWebAccountProviderOperationpublic sealed class WebAccountProviderAddAccountOperation : IWebAccountProviderAddAccountOperation, IWebAccountProviderOperationPublic NotInheritable Class WebAccountProviderAddAccountOperation Implements IWebAccountProviderAddAccountOperation, IWebAccountProviderOperation// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

The following demonstrates how to handle an add web account operation:


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

Properties

Kind Kind Kind Kind

Gets the kind of web account provider operation.

public : WebAccountProviderOperationKind Kind { get; }public WebAccountProviderOperationKind Kind { get; }Public ReadOnly Property Kind As WebAccountProviderOperationKind// You can use this property in JavaScript.

Methods

ReportCompleted() ReportCompleted() ReportCompleted() ReportCompleted()

Informs the activating app that the operation completed successfully.

public : void ReportCompleted()public void ReportCompleted()Public Function ReportCompleted() As void// You can use this method in JavaScript.