예제 #1
0
 /// <summary>
 /// Gets the system stores present in the specified Location.
 /// </summary>
 /// <param name="systemStoreLocation">The System Stores Location.</param>
 /// <returns>An array of strings (never null).</returns>
 public static IEnumerable<CertificateStore> GetSystemStores(CertificateStoreLocation systemStoreLocation)
 {
     var names = new EnumSystemStore(systemStoreLocation.Flags).GetSystemStores();
     return names.Select(name => new CertificateStore(name, systemStoreLocation));
 }
예제 #2
0
        /// <summary>
        /// Gets the system stores present in the specified Location.
        /// </summary>
        /// <param name="systemStoreLocation">The System Stores Location.</param>
        /// <returns>An array of strings (never null).</returns>
        public static IEnumerable <CertificateStore> GetSystemStores(CertificateStoreLocation systemStoreLocation)
        {
            var names = new EnumSystemStore(systemStoreLocation.Flags).GetSystemStores();

            return(names.Select(name => new CertificateStore(name, systemStoreLocation)));
        }
예제 #3
0
 /// <summary>
 /// Gets the system stores for the current user location.
 /// </summary>
 /// <returns>An array of strings (never null).</returns>
 public static IEnumerable<CertificateStore> GetSystemStores()        
 {
     var names = new EnumSystemStore(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER).GetSystemStores();
     return names.Select(name => new CertificateStore(name, CertificateStoreLocation.FromId(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER_ID)));
 }
예제 #4
0
        /// <summary>
        /// Gets the system stores for the current user location.
        /// </summary>
        /// <returns>An array of strings (never null).</returns>
        public static IEnumerable <CertificateStore> GetSystemStores()
        {
            var names = new EnumSystemStore(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER).GetSystemStores();

            return(names.Select(name => new CertificateStore(name, CertificateStoreLocation.FromId(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER_ID))));
        }