SafeNCryptKeyHandle SafeNCryptKeyHandle SafeNCryptKeyHandle SafeNCryptKeyHandle Constructors

Definition

Overloads

SafeNCryptKeyHandle() SafeNCryptKeyHandle() SafeNCryptKeyHandle()

Initializes a new instance of the SafeNCryptKeyHandle class.

SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle)

Instantiates a new instance of the SafeNCryptKeyHandle class.

SafeNCryptKeyHandle() SafeNCryptKeyHandle() SafeNCryptKeyHandle()

Initializes a new instance of the SafeNCryptKeyHandle class.

public:
 SafeNCryptKeyHandle();
public SafeNCryptKeyHandle ();
Public Sub New ()

Security

SecurityPermission
for permission to call unmanaged code. Demand value: LinkDemand. Associated enumeration: UnmanagedCode

SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle) SafeNCryptKeyHandle(IntPtr, SafeHandle)

Instantiates a new instance of the SafeNCryptKeyHandle class.

public:
 SafeNCryptKeyHandle(IntPtr handle, System::Runtime::InteropServices::SafeHandle ^ parentHandle);
public SafeNCryptKeyHandle (IntPtr handle, System.Runtime.InteropServices.SafeHandle parentHandle);
new Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle : nativeint * System.Runtime.InteropServices.SafeHandle -> Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle
Public Sub New (handle As IntPtr, parentHandle As SafeHandle)

Parameters

handle
IntPtr IntPtr IntPtr IntPtr

The pre-existing handle to use. Using Zero returns an invalid handle.

parentHandle
SafeHandle SafeHandle SafeHandle SafeHandle

The parent handle of this SafeNCryptKeyHandle.

Exceptions

parentHandle is closed.

-or-

parentHandle is invalid.

Applies to