共用方式為


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 帳戶的識別碼。

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 帳戶的識別碼。

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 帳戶的識別碼。

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 帳戶。

屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

另請參閱

適用於