/// <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)); }
/// <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))); }
/// <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))); }
/// <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)))); }