System.Security.Cryptography.X509Certificates.X509Store.X509Store C# (CSharp) Method

X509Store() public method

public X509Store ( StoreName storeName, StoreLocation storeLocation ) : System.Diagnostics
storeName StoreName
storeLocation StoreLocation
return System.Diagnostics
        public X509Store(StoreName storeName, StoreLocation storeLocation)
        {
            if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine)
                throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Arg_EnumIllegalVal, nameof(storeLocation)));

            switch (storeName)
            {
                case StoreName.AddressBook:
                    Name = "AddressBook";
                    break;
                case StoreName.AuthRoot:
                    Name = "AuthRoot";
                    break;
                case StoreName.CertificateAuthority:
                    Name = "CA";
                    break;
                case StoreName.Disallowed:
                    Name = "Disallowed";
                    break;
                case StoreName.My:
                    Name = "My";
                    break;
                case StoreName.Root:
                    Name = "Root";
                    break;
                case StoreName.TrustedPeople:
                    Name = "TrustedPeople";
                    break;
                case StoreName.TrustedPublisher:
                    Name = "TrustedPublisher";
                    break;
                default:
                    throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Arg_EnumIllegalVal, nameof(storeName)));
            }

            Location = storeLocation;
        }

Same methods

X509Store::X509Store ( )
X509Store::X509Store ( System storeHandle )
X509Store::X509Store ( System storeName, System storeLocation )
X509Store::X509Store ( string storeName )
X509Store::X509Store ( string storeName, System storeLocation )
X509Store::X509Store ( ) : System.Diagnostics
X509Store::X509Store ( IntPtr storeHandle ) : System.Diagnostics
X509Store::X509Store ( StoreLocation storeLocation ) : System.Diagnostics
X509Store::X509Store ( StoreName storeName ) : System.Diagnostics
X509Store::X509Store ( string storeName ) : System.Diagnostics
X509Store::X509Store ( string storeName, StoreLocation storeLocation ) : System.Diagnostics