共用方式為


WebAccountCommand 類別

定義

將命令與帳戶設定窗格中的 WebAccount 產生關聯。

public ref class WebAccountCommand sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.ApplicationSettings.IWebAccountCommandFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
class WebAccountCommand final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.ApplicationSettings.IWebAccountCommandFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebAccountCommand final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.ApplicationSettings.IWebAccountCommandFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
public sealed class WebAccountCommand
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.ApplicationSettings.IWebAccountCommandFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebAccountCommand
function WebAccountCommand(webAccount, invoked, actions)
Public NotInheritable Class WebAccountCommand
繼承
Object Platform::Object IInspectable WebAccountCommand
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

將 WebAccountCommand 類別的實例新增至 WebAccountCommands 集合。

建構函式

WebAccountCommand(WebAccount, WebAccountCommandInvokedHandler, SupportedWebAccountActions)

初始化 WebAccountCommand 類別的新實例。

屬性

Actions

取得命令在帳戶窗格中于 Web 帳戶上執行的動作。

Invoked

取得當使用者在 [帳戶設定] 窗格中選取帳戶和特定動作時所叫用的委派。

WebAccount

取得與目前命令相關聯的 Web 帳戶。

適用於

另請參閱