SafeEvpPKeyHandle 构造函数

定义

重载

SafeEvpPKeyHandle()

初始化类的新实例 SafeEvpPKeyHandle ,表示无效句柄。

SafeEvpPKeyHandle(IntPtr, Boolean)

使用指定句柄值初始化 SafeEvpPKeyHandle 类的新实例。

SafeEvpPKeyHandle()

初始化类的新实例 SafeEvpPKeyHandle ,表示无效句柄。

public:
 SafeEvpPKeyHandle();
public SafeEvpPKeyHandle ();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public SafeEvpPKeyHandle ();
Public Sub New ()
属性

适用于

SafeEvpPKeyHandle(IntPtr, Boolean)

使用指定句柄值初始化 SafeEvpPKeyHandle 类的新实例。

public:
 SafeEvpPKeyHandle(IntPtr handle, bool ownsHandle);
public SafeEvpPKeyHandle (IntPtr handle, bool ownsHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public SafeEvpPKeyHandle (IntPtr handle, bool ownsHandle);
new System.Security.Cryptography.SafeEvpPKeyHandle : nativeint * bool -> System.Security.Cryptography.SafeEvpPKeyHandle
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.SafeEvpPKeyHandle : nativeint * bool -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Sub New (handle As IntPtr, ownsHandle As Boolean)

参数

handle
IntPtr

nativeint

要表示的句柄值。

ownsHandle
Boolean

在终止阶段使 true 可靠地释放句柄,则为 SafeEvpPKeyHandle;否则为 false(不建议使用)。

属性

适用于