Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ X509Store() [5/9]

System.Security.Cryptography.X509Certificates.X509Store.X509Store ( StoreName storeName,
StoreLocation storeLocation )
inline

Definition at line 64 of file X509Store.cs.

65 {
66 if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine)
67 {
68 throw new ArgumentException(System.SR.Format(System.SR.Arg_EnumIllegalVal, "storeLocation"));
69 }
70 Name = storeName switch
71 {
72 StoreName.AddressBook => "AddressBook",
73 StoreName.AuthRoot => "AuthRoot",
74 StoreName.CertificateAuthority => "CA",
75 StoreName.Disallowed => "Disallowed",
76 StoreName.My => "My",
77 StoreName.Root => "Root",
78 StoreName.TrustedPeople => "TrustedPeople",
79 StoreName.TrustedPublisher => "TrustedPublisher",
80 _ => throw new ArgumentException(System.SR.Format(System.SR.Arg_EnumIllegalVal, "storeName")),
81 };
82 Location = storeLocation;
83 }
static string Arg_EnumIllegalVal
Definition SR.cs:144
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.SR.Arg_EnumIllegalVal, System.SR.Format(), System.Security.Cryptography.X509Certificates.X509Store.Location, and System.Security.Cryptography.X509Certificates.X509Store.Name.