X509Chain Constructor (IntPtr)

 

Initializes a new instance of the X509Chain class using an IntPtr handle to an X.509 chain.

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

public:
X509Chain(
	IntPtr chainContext
)

Parameters

chainContext
Type: System::IntPtr

An IntPtr handle to an X.509 chain.

Exception Condition
ArgumentNullException

The chainContext parameter is null.

CryptographicException

The chainContext parameter points to an invalid context.

Use this constructor to provide compatibility with the unmanaged Microsoft Cryptographic API (CAPI).

SecurityPermission

for the ability to execute unmanaged code. Security action: InheritanceDemand. Associated enumeration: SecurityPermissionFlag::UnmanagedCode

SecurityPermission

for the ability to execute unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag::UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: