SafeEvpPKeyHandle Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the EVP_PKEY*
pointer type from OpenSSL.
public ref class SafeEvpPKeyHandle sealed : System::Runtime::InteropServices::SafeHandle
public sealed class SafeEvpPKeyHandle : System.Runtime.InteropServices.SafeHandle
type SafeEvpPKeyHandle = class
inherit SafeHandle
Public NotInheritable Class SafeEvpPKeyHandle
Inherits SafeHandle
- Inheritance
- Inheritance
Remarks
Before using SafeEvpPKeyHandle to perform interop with OpenSSL a caller must ensure that the version of OpenSSL they are calling is the same as the version the .NET runtime is calling, and not a side-by-side version. The version of OpenSSL that the runtime is calling can be determined by OpenSslVersion.
Constructors
SafeEvpPKeyHandle() |
Initializes a new instance of the SafeEvpPKeyHandle class, representing an invalid handle. |
SafeEvpPKeyHandle(IntPtr, Boolean) |
Initializes a new instance of the SafeEvpPKeyHandle class with the specified handle value. |
Fields
handle |
Specifies the handle to be wrapped. (Inherited from SafeHandle) |
Properties
IsClosed |
Gets a value indicating whether the handle is closed. (Inherited from SafeHandle) |
IsInvalid |
Gets a value indicating whether the handle value is invalid. |
OpenSslVersion |
Gets a value representing the version number as reported by the loaded version of OpenSSL. |
Methods
Close() |
Marks the handle for releasing and freeing resources. (Inherited from SafeHandle) |
DangerousAddRef(Boolean) |
Manually increments the reference counter on SafeHandle instances. (Inherited from SafeHandle) |
DangerousGetHandle() |
Returns the value of the handle field. (Inherited from SafeHandle) |
DangerousRelease() |
Manually decrements the reference counter on a SafeHandle instance. (Inherited from SafeHandle) |
Dispose() |
Releases all resources used by the SafeHandle class. (Inherited from SafeHandle) |
Dispose(Boolean) |
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation. (Inherited from SafeHandle) |
DuplicateHandle() |
Creates another instance of this type or increments the reference count of the handle. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OpenKeyFromProvider(String, String) | |
OpenPrivateKeyFromEngine(String, String) |
Open a named private key using a named OpenSSL |
OpenPublicKeyFromEngine(String, String) |
Open a named public key using a named OpenSSL |
ReleaseHandle() |
When overridden in a derived class, executes the code required to free the handle. (Inherited from SafeHandle) |
SetHandle(IntPtr) |
Sets the handle to the specified pre-existing handle. (Inherited from SafeHandle) |
SetHandleAsInvalid() |
Marks a handle as no longer used. (Inherited from SafeHandle) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ