Modifier

Partager via


SafeNCryptKeyHandle Constructors

Definition

Overloads

SafeNCryptKeyHandle()

Initializes a new instance of the SafeNCryptKeyHandle class.

SafeNCryptKeyHandle(IntPtr, SafeHandle)

Instantiates a new instance of the SafeNCryptKeyHandle class.

SafeNCryptKeyHandle()

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Initializes a new instance of the SafeNCryptKeyHandle class.

public:
 SafeNCryptKeyHandle();
public SafeNCryptKeyHandle ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public SafeNCryptKeyHandle ();
Public Sub New ()
Attributes

Applies to

SafeNCryptKeyHandle(IntPtr, SafeHandle)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

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);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public SafeNCryptKeyHandle (IntPtr handle, System.Runtime.InteropServices.SafeHandle parentHandle);
new Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle : nativeint * System.Runtime.InteropServices.SafeHandle -> Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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

nativeint

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

parentHandle
SafeHandle

The parent handle of this SafeNCryptKeyHandle.

Attributes

Exceptions

parentHandle is null.

parentHandle is closed.

-or-

parentHandle is invalid.

Applies to