共用方式為


SecKey 建構函式

定義

多載

SecKey(IntPtr)

建立 Unmanaged 物件的 Managed 標記法時所使用的建構函式。

SecKey(IntPtr, Boolean)

建立 Unmanaged 物件的 Managed 標記法時所使用的建構函式。

SecKey(IntPtr)

建立 Unmanaged 物件的 Managed 標記法時所使用的建構函式。

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

參數

handle
IntPtr

nativeint

SecKey 物件的 Unmanaged 版本控制碼。

備註

傳回代表安全性金鑰的 Managed 包裝函式。

適用於

SecKey(IntPtr, Boolean)

建立 Unmanaged 物件的 Managed 標記法時所使用的建構函式。

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

參數

handle
IntPtr

nativeint

SecKey 物件的 Unmanaged 版本控制碼。

owns
Boolean

如果 Managed 程式碼已經擁有 物件的參考,則傳遞 true。  否則會傳回 false,這會叫用 Unmanaged 物件上的保留。

屬性

適用於