SecKey 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 物件上的保留。
- 屬性