Share via


SecKey 构造函数

定义

重载

SecKey(IntPtr)

创建非托管对象的托管表示形式时使用的构造函数。

SecKey(IntPtr, Boolean)

创建非托管对象的托管表示形式时使用的构造函数。

SecKey(IntPtr)

创建非托管对象的托管表示形式时使用的构造函数。

public SecKey (IntPtr handle);
new Security.SecKey : nativeint -> Security.SecKey

参数

handle
IntPtr

nativeint

SecKey 对象的非托管版本的句柄。

注解

返回表示安全密钥的托管包装器。

适用于

SecKey(IntPtr, Boolean)

创建非托管对象的托管表示形式时使用的构造函数。

[Foundation.Preserve(Conditional=true)]
public SecKey (IntPtr handle, bool owns);
new Security.SecKey : nativeint * bool -> Security.SecKey

参数

handle
IntPtr

nativeint

SecKey 对象的非托管版本的句柄。

owns
Boolean

如果托管代码已拥有对 对象的引用,则传递 true。  否则,传递 false,这将调用非托管对象上的保留。

属性

适用于