WebAccountManager.AddWebAccountAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddWebAccountAsync(String, String, IMapView<String,String>) |
Adds a new web account asynchronously with three inputs. |
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope) |
Adds a new web account asynchronously with four inputs. |
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String) |
Adds a new web account asynchronously with five inputs. |
AddWebAccountAsync(String, String, IMapView<String,String>)
Adds a new web account asynchronously with three inputs.
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)
Parameters
- webAccountId
-
String
Platform::String
winrt::hstring
The Id for the web account.
- webAccountUserName
-
String
Platform::String
winrt::hstring
The user name for the web account.
Properties for the web account.
Returns
When this method completes, it returns the new web account.
- Attributes
See also
Applies to
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)
Adds a new web account asynchronously with four inputs.
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)
Parameters
- webAccountId
-
String
Platform::String
winrt::hstring
The Id for the web account.
- webAccountUserName
-
String
Platform::String
winrt::hstring
The user name for the web account.
Properties for the web account.
- scope
- WebAccountScope
The scope of the web account.
Returns
When this method completes, it returns the new web account.
- Attributes
See also
Applies to
AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope, String)
Adds a new web account asynchronously with five inputs.
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)
Parameters
- webAccountId
-
String
Platform::String
winrt::hstring
The Id for the web account.
- webAccountUserName
-
String
Platform::String
winrt::hstring
The user name for the web account.
Properties for the web account.
- scope
- WebAccountScope
The scope of the web account.
- perUserWebAccountId
-
String
Platform::String
winrt::hstring
The per-user web account Id.
Returns
When this method completes, it returns the new web account.
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
See also
- AddWebAccountAsync(String, String, IMapView<String,String>, WebAccountScope)
- AddWebAccountAsync(String, String, IMapView<String,String>)