Поделиться через


WebAccountManager.AddWebAccountForUserAsync Метод

Определение

Перегрузки

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

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Идентификатор учетной записи веб-сайта.

webAccountUserName
String

Platform::String

winrt::hstring

Имя пользователя для учетной записи веб-сайта.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Свойства для веб-учетной записи.

Возвращаемое значение

Асинхронная операция с новой веб-учетной записью.

Атрибуты

Требования к Windows

Семейство устройств
Windows 10 Creators Update (появилось в 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v4.0)

Применяется к

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

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Идентификатор учетной записи веб-сайта.

webAccountUserName
String

Platform::String

winrt::hstring

Имя пользователя для учетной записи веб-сайта.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Свойства для веб-учетной записи.

scope
WebAccountScope

Область учетной записи веб-сайта.

Возвращаемое значение

Асинхронная операция с новой веб-учетной записью.

Атрибуты

Требования к 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)

Добавляет новую учетную запись веб-сайта. Этот процесс отслеживается как принадлежащий указанному пользователю (для использования с приложениями с поддержкой нескольких пользователей).

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

Идентификатор учетной записи веб-сайта.

webAccountUserName
String

Platform::String

winrt::hstring

Имя пользователя для учетной записи веб-сайта.

props

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

Свойства для веб-учетной записи.

scope
WebAccountScope

Область учетной записи веб-сайта.

perUserWebAccountId
String

Platform::String

winrt::hstring

Идентификатор веб-учетной записи для конкретного пользователя.

Возвращаемое значение

Асинхронная операция с новой веб-учетной записью.

Атрибуты

Требования к Windows

Семейство устройств
Windows 10 Creators Update (появилось в 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v4.0)

Применяется к