HisTech Up

Comment supprimer les informations d’identification de l’utilisateur- Windows Store

Introduction

user

Christian Hissibini

I am a Tech enthusiast who loves to blend Dev & Design on Web and Mobile Platforms. I am also a Windows Platform Dev MVP


LATEST POSTS

What are the differences between Data Mining, Machine Learning and Deep Learning? 11th February, 2018

What are the challenges of using Artificial Intelligence? 15th January, 2018

Mobile Development

Comment supprimer les informations d’identification de l’utilisateur- Windows Store

Posted on .

Dans cet article, nous voyons comment supprimer des informations d’identification dans le stockage des informations d’identification.

Étape 1:

  1. Créez un objet PasswordVault.
  2. Récupérez les informations d’identification que vous souhaitez supprimer du stockage des informations d’identification. Pour plus d’informations sur la procédure à suivre, voir Comment énumérer et récupérer les informations d’identification de l’utilisateur.
  3. Appelez la méthode PasswordVault.Remove.

Étape 2: Suppression des informations d’identification du stockage des informations d’identification

 

try { 
 
       Windows.Security.Credentials.PasswordVault vault = new Windows.Security.Credentials.PasswordVault(); 
       IReadOnlyList creds = vault.RetrieveAll(); 
       foreach (PasswordCredential c in creds) 
       { 
          try 
             { 
                vault.Remove(c); 
             } 
             catch (Exception Error) // Stored credential was deleted 
             { 
                DebugPrint(Error.ToString()); 
             } 
       } 
 
    } 
    catch (Exception Error) // No stored credentials, so none to delete 
    { 
       DebugPrint(Error.ToString()); 
    }
profile

Christian Hissibini

I am a Tech enthusiast who loves to blend Dev & Design on Web and Mobile Platforms. I am also a Windows Platform Dev MVP

There are no comments.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

View Comments (0) ...
Navigation