CredentialCommand 类

定义

已弃用。 表示用于在帐户设置窗格中更改 Web 帐户凭据的命令。

public ref class CredentialCommand sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.ApplicationSettings.ICredentialCommandFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
class CredentialCommand 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.ICredentialCommandFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class CredentialCommand final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.ApplicationSettings.ICredentialCommandFactory), 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 CredentialCommand
[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.ICredentialCommandFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CredentialCommand
function CredentialCommand(passwordCredential, deleted)
Public NotInheritable Class CredentialCommand
继承
Object Platform::Object IInspectable CredentialCommand
属性

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 中引入)

构造函数

CredentialCommand(PasswordCredential)

使用 PasswordCredential 对象初始化 CredentialCommand 类的新实例。

CredentialCommand(PasswordCredential, CredentialCommandCredentialDeletedHandler)

使用 PasswordCredential 对象和 CredentialCommandCredentialDeletedHandler 委托初始化 CredentialCommand 类的新实例。

属性

CredentialDeleted

获取在用户删除凭据时由帐户设置窗格调用的委托。

PasswordCredential

获取当前命令应用到的密码凭据。

适用于