SafeNCryptKeyHandle 构造函数

定义

重载

SafeNCryptKeyHandle()

初始化 SafeNCryptKeyHandle 类的新实例。

SafeNCryptKeyHandle(IntPtr, SafeHandle)

实例化 SafeNCryptKeyHandle 类的新实例。

SafeNCryptKeyHandle()

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

初始化 SafeNCryptKeyHandle 类的新实例。

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

适用于

SafeNCryptKeyHandle(IntPtr, SafeHandle)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
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 无效。

适用于