StoreHandle Property
Collapse the table of content
Expand the table of content

X509Store.StoreHandle Property

 

Gets an IntPtr handle to an HCERTSTORE store.

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

public IntPtr StoreHandle {
	[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
	[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, 
		Flags = SecurityPermissionFlag.UnmanagedCode)]
	get;
}

Property Value

Type: System.IntPtr

A handle to an HCERTSTORE store.

Exception Condition
CryptographicException

The store is not open.

Use the StoreHandle property 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:
© 2016 Microsoft