WebAccount(WebAccountProvider, String, WebAccountState) 构造函数

定义

创建 WebAccount 类的实例。

public:
 WebAccount(WebAccountProvider ^ webAccountProvider, Platform::String ^ userName, WebAccountState state);
 WebAccount(WebAccountProvider const& webAccountProvider, winrt::hstring const& userName, WebAccountState const& state);
public WebAccount(WebAccountProvider webAccountProvider, string userName, WebAccountState state);
function WebAccount(webAccountProvider, userName, state)
Public Sub New (webAccountProvider As WebAccountProvider, userName As String, state As WebAccountState)

参数

webAccountProvider
WebAccountProvider

与 Web 帐户关联的 Web 帐户提供程序。

userName
String

Platform::String

winrt::hstring

Web 帐户的用户名。

state
WebAccountState

Web 帐户的状态。

适用于