PasswordVault Klasse

Definition

Stellt ein Schließfach für Anmeldeinformationen dar. Schließfächer sind für einen Benutzer spezifisch.

Apps, die in einem AppContainer ausgeführt werden (z. B. UWP-Apps), können nur auf den Inhalt ihres eigenen Schließfachs (für den aktuellen Benutzer) zugreifen. Apps, die nicht in einem AppContainer ausgeführt werden (z. B. normale Desktop-Apps), können auf alle Schließfächer des Benutzers zugreifen, einschließlich der Schließfächer von AppContainer-Apps.

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
Vererbung
Object Platform::Object IInspectable PasswordVault
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Konstruktoren

PasswordVault()

Erstellt und initialisiert eine neue instance des PasswordVault-Objekts.

Methoden

Add(PasswordCredential)

Fügt dem Schließfach für Anmeldeinformationen anmeldeinformationen hinzu.

FindAllByResource(String)

Durchsucht das Schließfach für Anmeldeinformationen nach Anmeldeinformationen, die der angegebenen Ressource entsprechen.

FindAllByUserName(String)

Durchsucht das Schließfach für Anmeldeinformationen nach Anmeldeinformationen, die dem angegebenen Benutzernamen entsprechen.

Remove(PasswordCredential)

Entfernt Anmeldeinformationen aus dem Schließfach für Anmeldeinformationen.

Retrieve(String, String)

Liest Anmeldeinformationen aus dem Schließfach für Anmeldeinformationen.

RetrieveAll()

Ruft alle Anmeldeinformationen ab, die im Schließfach für Anmeldeinformationen gespeichert sind.

Gilt für:

Weitere Informationen