SafeEvpPKeyHandle Класс
Определение
Представляет тип указателя EVP_PKEY*
из OpenSSL.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
- Наследование
Комментарии
Прежде чем использовать SafeEvpPKeyHandle для выполнения взаимодействия с OpenSSL, вызывающий объект должен убедиться, что используемая версия OpenSSL совпадает с версией, которую вызывает среда выполнения .NET, а не с параллельной версией.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. Версия OpenSSL, которую вызывает среда выполнения, можно определить с помощью OpenSslVersion .The version of OpenSSL that the runtime is calling can be determined by OpenSslVersion.
Конструкторы
SafeEvpPKeyHandle(IntPtr, Boolean) |
Инициализирует новый экземпляр класса SafeEvpPKeyHandle с заданным значением дескриптора.Initializes a new instance of the SafeEvpPKeyHandle class with the specified handle value. |
Поля
handle |
Определяет инкапсулируемый дескриптор.Specifies the handle to be wrapped. (Унаследовано от SafeHandle) |
Свойства
IsClosed |
Возвращает значение, показывающее, является ли дескриптор закрытым.Gets a value indicating whether the handle is closed. (Унаследовано от SafeHandle) |
IsInvalid |
Возвращает значение, показывающее, недействителен ли дескриптор.Gets a value indicating whether the handle value is invalid. |
OpenSslVersion |
Возвращает значение, представляющее номер версии, сообщаемый загруженной версией OpenSSL.Gets a value representing the version number as reported by the loaded version of OpenSSL. |
Методы
Close() |
Помечает дескриптор для освобождения самого дескриптора и соответствующих ресурсов.Marks the handle for releasing and freeing resources. (Унаследовано от SafeHandle) |
DangerousAddRef(Boolean) |
Вручную увеличивает счетчик ссылок для экземпляров SafeHandle.Manually increments the reference counter on SafeHandle instances. (Унаследовано от SafeHandle) |
DangerousGetHandle() |
Возвращает значение поля handle.Returns the value of the handle field. (Унаследовано от SafeHandle) |
DangerousRelease() |
Вручную уменьшает счетчик ссылок для экземпляра SafeHandle.Manually decrements the reference counter on a SafeHandle instance. (Унаследовано от SafeHandle) |
Dispose() |
Освобождает все ресурсы, используемые классом SafeHandle.Releases all resources used by the SafeHandle class. (Унаследовано от SafeHandle) |
Dispose(Boolean) |
Освобождает неуправляемые ресурсы, используемые классом SafeHandle, определяя, нужно ли выполнять обычную операцию удаления.Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation. (Унаследовано от SafeHandle) |
DuplicateHandle() |
Создает другой экземпляр этого типа, который имеет независимое время существования, но отслеживает тот же ресурс.Creates another instance of this type which has an independent lifetime but tracks the same resource. |
Equals(Object) |
Определяет, равен ли указанный объект текущему объекту.Determines whether the specified object is equal to the current object. (Унаследовано от Object) |
GetHashCode() |
Служит хэш-функцией по умолчанию.Serves as the default hash function. (Унаследовано от Object) |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
ReleaseHandle() |
При переопределении в производном классе выполняет код, необходимый для освобождения дескриптора.When overridden in a derived class, executes the code required to free the handle. (Унаследовано от SafeHandle) |
SetHandle(IntPtr) |
Определяет дескриптор для заданного ранее существующего дескриптора.Sets the handle to the specified pre-existing handle. (Унаследовано от SafeHandle) |
SetHandleAsInvalid() |
Помечает дескриптор как больше не используемый.Marks a handle as no longer used. (Унаследовано от SafeHandle) |
ToString() |
Возвращает строку, представляющую текущий объект.Returns a string that represents the current object. (Унаследовано от Object) |