Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​X509Certificates.​X509Store
Assembly: System.Security.Cryptography
Inheritance: object → X509Store
Represents an X.509 store, which is a physical store where certificates are persisted and managed. This class cannot be inherited.
Properties
public
X509Certificate2Collection
Certificates
Returns a collection of certificates located in an X.509 certificate store.
public
bool
IsOpen
Gets a value that indicates whether the instance is connected to an open certificate store.
public
StoreLocation
Location
Gets the location of the X.509 certificate store.
public
string
Name
Gets the name of the X.509 certificate store.
public
nint
StoreHandle
Gets an <see cref="T:System.IntPtr" /> handle to an <see langword="HCERTSTORE" /> store.
Methods
Adds a certificate to an X.509 certificate store.
public
void
AddRange​(X509Certificate2Collection certificates)
certificates
The collection of certificates to add.
Adds a collection of certificates to an X.509 certificate store.
public
void
Close​()
Closes an X.509 certificate store.
public
void
Dispose​()
Releases the resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Store" /> .
public
void
Open​(OpenFlags flags)
flags
A bitwise combination of enumeration values that specifies the way to open the X.509 certificate store.
Opens an X.509 certificate store or creates a new store, depending on <see cref="T:System.Security.Cryptography.X509Certificates.OpenFlags" /> flag settings.
public
void
Remove​(X509Certificate2 certificate)
certificate
The certificate to remove.
Removes a certificate from an X.509 certificate store.
public
void
RemoveRange​(X509Certificate2Collection certificates)
certificates
A range of certificates to remove.
Removes a range of certificates from an X.509 certificate store.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object