WebAccountManager.AddWebAccountAsync 方法

定义

重载

AddWebAccountAsync(String, String, IMapView<String,String>)

使用三个输入异步添加新的 Web 帐户。

AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)

使用四个输入异步添加新的 Web 帐户。

AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String)

使用五个输入异步添加新的 Web 帐户。

AddWebAccountAsync(String, String, IMapView<String,String>)

使用三个输入异步添加新的 Web 帐户。

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

参数

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 帐户。

属性

另请参阅

适用于

AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)

使用四个输入异步添加新的 Web 帐户。

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

参数

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 帐户。

属性

另请参阅

适用于

AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String)

使用五个输入异步添加新的 Web 帐户。

public:
 static IAsyncOperation<WebAccount ^> ^ AddWebAccountAsync(Platform::String ^ webAccountId, Platform::String ^ webAccountUserName, IMapView<Platform::String ^, Platform::String ^> ^ props, WebAccountScope scope, Platform::String ^ perUserWebAccountId);
/// [Windows.Foundation.Metadata.Overload("AddWebAccountWithScopeAndMapAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAccount> AddWebAccountAsync(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("AddWebAccountWithScopeAndMapAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAccount> AddWebAccountAsync(string webAccountId, string webAccountUserName, IReadOnlyDictionary<string,string> props, WebAccountScope scope, string perUserWebAccountId);
function addWebAccountAsync(webAccountId, webAccountUserName, props, scope, perUserWebAccountId)
Public Shared Function AddWebAccountAsync (webAccountId As String, webAccountUserName As String, props As IReadOnlyDictionary(Of String, String), scope As WebAccountScope, perUserWebAccountId As String) As IAsyncOperation(Of WebAccount)

参数

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 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

另请参阅

适用于