X509Store Constructor (IntPtr)

 

Initializes a new instance of the X509Store class using an Intptr handle to an HCERTSTORE store.

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

public X509Store(
	IntPtr storeHandle
)

Parameters

storeHandle
Type: System.IntPtr

A handle to an HCERTSTORE store.

Exception Condition
ArgumentNullException

The storeHandle parameter is null.

CryptographicException

The storeHandle parameter points to an invalid context.

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

For more information about the HCERTSTORE handle, see the unmanaged CAPI documentation in the Platform SDK section of the MSDN Library.

SecurityPermission

for unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

SecurityPermission

for unmanaged code. Security action: InheritanceDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: