SafeEvpPKeyHandle 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SafeEvpPKeyHandle 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SafeEvpPKeyHandle() |
初始化該類別的新實例 SafeEvpPKeyHandle ,代表一個無效的句柄。 |
| SafeEvpPKeyHandle(IntPtr, Boolean) |
初始化一個以指定 handle 值的新 SafeEvpPKeyHandle 類別實例。 |
SafeEvpPKeyHandle()
初始化該類別的新實例 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 SafeEvpPKeyHandle();
Public Sub New ()
- 屬性
適用於
SafeEvpPKeyHandle(IntPtr, Boolean)
初始化一個以指定 handle 值的新 SafeEvpPKeyHandle 類別實例。
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);
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")>]
new System.Security.Cryptography.SafeEvpPKeyHandle : nativeint * bool -> System.Security.Cryptography.SafeEvpPKeyHandle
new System.Security.Cryptography.SafeEvpPKeyHandle : nativeint * bool -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Sub New (handle As IntPtr, ownsHandle As Boolean)
參數
- handle
-
IntPtr
nativeint
要代表的handle值。
- ownsHandle
- Boolean
true 以確保在最終階段能可靠地釋放 SafeEvpPKeyHandle 握把;否則, false (不建議)。
- 屬性