Bagikan melalui


SafeNCryptKeyHandle Konstruktor

Definisi

Overload

SafeNCryptKeyHandle()

Menginisialisasi instans baru kelas SafeNCryptKeyHandle.

SafeNCryptKeyHandle(IntPtr, SafeHandle)

Membuat instans baru kelas SafeNCryptKeyHandle .

SafeNCryptKeyHandle()

Sumber:
Cng.NotSupported.cs
Sumber:
Cng.NotSupported.cs
Sumber:
Cng.NotSupported.cs

Menginisialisasi instans baru kelas SafeNCryptKeyHandle.

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

Berlaku untuk

SafeNCryptKeyHandle(IntPtr, SafeHandle)

Sumber:
Cng.NotSupported.cs
Sumber:
Cng.NotSupported.cs
Sumber:
Cng.NotSupported.cs

Membuat instans baru kelas SafeNCryptKeyHandle .

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)

Parameter

handle
IntPtr

nativeint

Handel yang sudah ada sebelumnya untuk digunakan. Menggunakan Zero mengembalikan handel yang tidak valid.

parentHandle
SafeHandle

Handel induk dari ini SafeNCryptKeyHandle.

Atribut

Pengecualian

parentHandleadalah null.

parentHandle ditutup.

-atau-

parentHandle tidak valid.

Berlaku untuk