using System.Security.Cryptography.X509Certificates; X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); // Do some work with the store store.Close();In this example, a new X509Store object is created representing the "My" store in the CurrentUser location. After some operations are performed on the store, the Close() method is called to release any resources associated with it. This code example is part of the .NET Framework, a package library provided by Microsoft for building Windows applications using C#.