Share via


X509Store Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents an X.509 store, which is a physical store where certificates are persisted and managed. This class cannot be inherited.

Inheritance Hierarchy

System. . :: . .Object
  System.Security.Cryptography.X509Certificates..::..X509Store

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  System.Security (in System.Security.dll)

Syntax

'Declaration
Public NotInheritable Class X509Store
public sealed class X509Store
public ref class X509Store sealed
[<Sealed>]
type X509Store =  class end
public final class X509Store

The X509Store type exposes the following members.

Constructors

  Name Description
Public method X509Store(Session) Initializes a new instance of the X509Store class using the personal certificates of the current user store.
Public method X509Store(Session, StoreName) Initializes a new instance of the X509Store class using the specified StoreName value.

Top

Properties

  Name Description
Public property Certificates Returns a collection of certificates located in an X.509 certificate store.
Public property Name Gets the name of the X.509 certificate store.

Top

Methods

  Name Description
Public method Add(X509Certificate2) Adds a certificate to an X.509 certificate store.
Public method Add(X509Certificate2, String) Adds a certificate with a friendly name to an X.509 certificate store.
Public method Close Closes an X.509 certificate store.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Open Opens an X.509 certificate store or creates a new store, depending on OpenFlags flag settings.
Public method Remove Removes a certificate from an X.509 certificate store.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Use this class to work with an X.509 store.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Security.Cryptography.X509Certificates Namespace