WebAccountManager.AddWebAccountForUserAsync 方法

定义

重载

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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)

参数

user
User

必须对其帐户进行身份验证的用户。

webAccountId
String

Platform::String

winrt::hstring

Web 帐户的 ID。

webAccountUserName
String

Platform::String

winrt::hstring

Web 帐户的用户名。

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Web 帐户的属性。

返回

使用新 Web 帐户的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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)

参数

user
User

必须对其帐户进行身份验证的用户。

webAccountId
String

Platform::String

winrt::hstring

Web 帐户的 ID。

webAccountUserName
String

Platform::String

winrt::hstring

Web 帐户的用户名。

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Web 帐户的属性。

scope
WebAccountScope

Web 帐户的范围。

返回

使用新 Web 帐户的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于

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

添加新的 Web 帐户。 此过程被跟踪为属于指定用户 (,以用于多用户感知应用) 。

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)

参数

user
User

必须对其帐户进行身份验证的用户。

webAccountId
String

Platform::String

winrt::hstring

Web 帐户的 ID。

webAccountUserName
String

Platform::String

winrt::hstring

Web 帐户的用户名。

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Web 帐户的属性。

scope
WebAccountScope

Web 帐户的范围。

perUserWebAccountId
String

Platform::String

winrt::hstring

此特定用户的 Web 帐户 ID。

返回

使用新 Web 帐户的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于