SafeNCryptKeyHandle 建構函式

定義

多載

SafeNCryptKeyHandle()

初始化 SafeNCryptKeyHandle 類別的新執行個體。

SafeNCryptKeyHandle(IntPtr, SafeHandle)

執行個體化 SafeNCryptKeyHandle 類別的新執行個體。

SafeNCryptKeyHandle()

來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs

初始化 SafeNCryptKeyHandle 類別的新執行個體。

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

適用於

SafeNCryptKeyHandle(IntPtr, SafeHandle)

來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs

執行個體化 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)

參數

handle
IntPtr

nativeint

要使用的既有控制代碼。 使用 Zero 傳回無效的控制代碼。

parentHandle
SafeHandle

SafeNCryptKeyHandle 的父控制代碼。

屬性

例外狀況

parentHandlenull

parentHandle 已關閉。

-或-

parentHandle 無效。

適用於