Share via


WebAccountManager.AddWebAccountForUserAsync Method

Definition

Overloads

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>, WebAccountScope)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>, WebAccountScope, String)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

public:
 static IAsyncOperation<WebAccount ^> ^ AddWebAccountForUserAsync(User ^ user, Platform::String ^ webAccountId, Platform::String ^ webAccountUserName, IMapView<Platform::String ^, Platform::String ^> ^ props);
/// [Windows.Foundation.Metadata.Overload("AddWebAccountForUserAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User const& user, winrt::hstring const& webAccountId, winrt::hstring const& webAccountUserName, IMapView<winrt::hstring, winrt::hstring const&> const& props);
[Windows.Foundation.Metadata.Overload("AddWebAccountForUserAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User user, string webAccountId, string webAccountUserName, IReadOnlyDictionary<string,string> props);
function addWebAccountForUserAsync(user, webAccountId, webAccountUserName, props)
Public Shared Function AddWebAccountForUserAsync (user As User, webAccountId As String, webAccountUserName As String, props As IReadOnlyDictionary(Of String, String)) As IAsyncOperation(Of WebAccount)

Parameters

user
User

The user for which an account must be authenticated.

webAccountId
String

Platform::String

winrt::hstring

The Id for the web account.

webAccountUserName
String

Platform::String

winrt::hstring

The user name for the web account.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

Properties for the web account.

Returns

An asynchronous operation with the new web account.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>, WebAccountScope)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

public:
 static IAsyncOperation<WebAccount ^> ^ AddWebAccountForUserAsync(User ^ user, Platform::String ^ webAccountId, Platform::String ^ webAccountUserName, IMapView<Platform::String ^, Platform::String ^> ^ props, WebAccountScope scope);
/// [Windows.Foundation.Metadata.Overload("AddWebAccountWithScopeForUserAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User const& user, winrt::hstring const& webAccountId, winrt::hstring const& webAccountUserName, IMapView<winrt::hstring, winrt::hstring const&> const& props, WebAccountScope const& scope);
[Windows.Foundation.Metadata.Overload("AddWebAccountWithScopeForUserAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User user, string webAccountId, string webAccountUserName, IReadOnlyDictionary<string,string> props, WebAccountScope scope);
function addWebAccountForUserAsync(user, webAccountId, webAccountUserName, props, scope)
Public Shared Function AddWebAccountForUserAsync (user As User, webAccountId As String, webAccountUserName As String, props As IReadOnlyDictionary(Of String, String), scope As WebAccountScope) As IAsyncOperation(Of WebAccount)

Parameters

user
User

The user for which an account must be authenticated.

webAccountId
String

Platform::String

winrt::hstring

The Id for the web account.

webAccountUserName
String

Platform::String

winrt::hstring

The user name for the web account.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

Properties for the web account.

scope
WebAccountScope

The scope of the web account.

Returns

An asynchronous operation with the new web account.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to

AddWebAccountForUserAsync(User, String, String, IMapView<String,String>, WebAccountScope, String)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

public:
 static IAsyncOperation<WebAccount ^> ^ AddWebAccountForUserAsync(User ^ user, Platform::String ^ webAccountId, Platform::String ^ webAccountUserName, IMapView<Platform::String ^, Platform::String ^> ^ props, WebAccountScope scope, Platform::String ^ perUserWebAccountId);
/// [Windows.Foundation.Metadata.Overload("AddWebAccountWithScopeAndMapForUserAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User const& user, winrt::hstring const& webAccountId, winrt::hstring const& webAccountUserName, IMapView<winrt::hstring, winrt::hstring const&> const& props, WebAccountScope const& scope, winrt::hstring const& perUserWebAccountId);
[Windows.Foundation.Metadata.Overload("AddWebAccountWithScopeAndMapForUserAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAccount> AddWebAccountForUserAsync(User user, string webAccountId, string webAccountUserName, IReadOnlyDictionary<string,string> props, WebAccountScope scope, string perUserWebAccountId);
function addWebAccountForUserAsync(user, webAccountId, webAccountUserName, props, scope, perUserWebAccountId)
Public Shared Function AddWebAccountForUserAsync (user As User, webAccountId As String, webAccountUserName As String, props As IReadOnlyDictionary(Of String, String), scope As WebAccountScope, perUserWebAccountId As String) As IAsyncOperation(Of WebAccount)

Parameters

user
User

The user for which an account must be authenticated.

webAccountId
String

Platform::String

winrt::hstring

The Id for the web account.

webAccountUserName
String

Platform::String

winrt::hstring

The user name for the web account.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

Properties for the web account.

scope
WebAccountScope

The scope of the web account.

perUserWebAccountId
String

Platform::String

winrt::hstring

The web account Id for this particular user.

Returns

An asynchronous operation with the new web account.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to