SafeNCryptHandle Constructors

Definition

Overloads

SafeNCryptHandle()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the SafeNCryptHandle class.

SafeNCryptHandle(IntPtr, SafeHandle)

Instantiates a new instance of the SafeNCryptHandle class.

SafeNCryptHandle()

Initializes a new instance of the SafeNCryptHandle class.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 SafeNCryptHandle();
protected SafeNCryptHandle ();
Protected Sub New ()

Applies to

SafeNCryptHandle(IntPtr, SafeHandle)

Instantiates a new instance of the SafeNCryptHandle class.

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

Parameters

handle
IntPtr

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

parentHandle
SafeHandle

The parent handle of this SafeNCryptHandle.

Exceptions

parentHandle is null.

parentHandle is closed.

-or-

parentHandle is invalid.

Applies to