WebAccountManager.AddWebAccountForUserAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 帳戶的識別碼。
- webAccountUserName
-
String
Platform::String
winrt::hstring
Web 帳戶的使用者名稱。
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 帳戶的識別碼。
- webAccountUserName
-
String
Platform::String
winrt::hstring
Web 帳戶的使用者名稱。
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 帳戶的識別碼。
- webAccountUserName
-
String
Platform::String
winrt::hstring
Web 帳戶的使用者名稱。
Web 帳戶的屬性。
- scope
- WebAccountScope
Web 帳戶的範圍。
- perUserWebAccountId
-
String
Platform::String
winrt::hstring
此特定使用者的 Web 帳戶識別碼。
傳回
具有新 Web 帳戶的非同步作業。
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應