PasswordVault 类

定义

表示凭据的凭据保险箱。 保险箱特定于用户。

例如,在 AppContainer (中运行的应用) UWP 应用只能访问当前用户) 自己的保险箱 (的内容。 例如,未在 AppContainer 中运行的应用 (常规桌面应用) 可以访问所有用户的保险箱,包括 AppContainer 应用的保险箱。

public ref class PasswordVault sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PasswordVault final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class PasswordVault final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PasswordVault
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PasswordVault
function PasswordVault()
Public NotInheritable Class PasswordVault
继承
Object Platform::Object IInspectable PasswordVault
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

PasswordVault()

创建并初始化 PasswordVault 对象的新实例。

方法

Add(PasswordCredential)

将凭据添加到 凭据保险箱

FindAllByResource(String)

在凭据保险箱中搜索与指定资源匹配的凭据。

FindAllByUserName(String)

在凭据保险箱中搜索与指定用户名匹配的凭据。

Remove(PasswordCredential)

从凭据保险箱中删除凭据。

Retrieve(String, String)

从凭据保险箱读取凭据。

RetrieveAll()

检索存储在凭据保险箱中的所有凭据。

适用于

另请参阅