WebAccountManager.AddWebAccountAsync Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
AddWebAccountAsync(String, String, IMapView<String,String>) |
Добавляет новую веб-учетную запись асинхронно с тремя входными данными. |
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope) |
Добавляет новую веб-учетную запись асинхронно с четырьмя входными данными. |
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String) |
Добавляет новую веб-учетную запись асинхронно с пятью входными данными. |
AddWebAccountAsync(String, String, IMapView<String,String>)
Добавляет новую веб-учетную запись асинхронно с тремя входными данными.
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
Идентификатор учетной записи веб-сайта.
- webAccountUserName
-
String
Platform::String
winrt::hstring
Имя пользователя для учетной записи веб-сайта.
Свойства для веб-учетной записи.
Возвращаемое значение
После завершения этого метода возвращается новая учетная запись веб-сайта.
- Атрибуты
См. также раздел
Применяется к
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)
Добавляет новую веб-учетную запись асинхронно с четырьмя входными данными.
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
Идентификатор учетной записи веб-сайта.
- webAccountUserName
-
String
Platform::String
winrt::hstring
Имя пользователя для учетной записи веб-сайта.
Свойства для веб-учетной записи.
- scope
- WebAccountScope
Область учетной записи веб-сайта.
Возвращаемое значение
После завершения этого метода возвращается новая учетная запись веб-сайта.
- Атрибуты
См. также раздел
Применяется к
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String)
Добавляет новую веб-учетную запись асинхронно с пятью входными данными.
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
Идентификатор учетной записи веб-сайта.
- webAccountUserName
-
String
Platform::String
winrt::hstring
Имя пользователя для учетной записи веб-сайта.
Свойства для веб-учетной записи.
- scope
- WebAccountScope
Область учетной записи веб-сайта.
- perUserWebAccountId
-
String
Platform::String
winrt::hstring
Идентификатор учетной записи веб-сайта для каждого пользователя.
Возвращаемое значение
После завершения этого метода возвращается новая учетная запись веб-сайта.
- Атрибуты
Требования к Windows
Семейство устройств |
Windows 10 Anniversary Edition (появилось в 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (появилось в v3.0)
|
См. также раздел
- AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)
- AddWebAccountAsync(String, String, IMapView<String,String>)