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.​X509Chain
Assembly: System.Security.Cryptography
Inheritance: object → X509Chain
Represents a chain-building engine for <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> certificates.
Properties
public
nint
ChainContext
Gets a handle to an X.509 chain.
public
X509ChainElementCollection
ChainElements
Gets a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> objects.
public
X509ChainPolicy
ChainPolicy
Gets or sets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> to use when building an X.509 certificate chain.
public
X509ChainStatus[]
ChainStatus
Gets the status of each element in an <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> object.
public
Microsoft.​Win32.​SafeHandles.​SafeX509ChainHandle
SafeHandle
Gets a safe handle for this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> instance.
Methods
public
bool
Build​(X509Certificate2 certificate)
certificate
An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.
Returns <see langword="true" /> if the X.509 certificate is valid; otherwise, <see langword="false" /> .
Builds an X.509 chain using the policy specified in <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> .
public
void
Dispose​()
Releases all of the resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> .
protected
void
Dispose​(bool disposing)
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
Releases the unmanaged resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> , and optionally releases the managed resources.
public
void
Reset​()
Clears the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> object.
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