SafeEvpPKeyHandle.DuplicateHandle Method
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.
Creates another instance of this type or increments the reference count of the handle.
public:
System::Security::Cryptography::SafeEvpPKeyHandle ^ DuplicateHandle();
public System.Security.Cryptography.SafeEvpPKeyHandle DuplicateHandle ();
member this.DuplicateHandle : unit -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Function DuplicateHandle () As SafeEvpPKeyHandle
Returns
Another instance of this type or the existing handle.
Exceptions
This handle is invalid.
Remarks
In .NET 8 and earlier versions, this method creates a new EVP_PKEY
instance. In .NET 9 and later versions, this method increments the reference count of the existing EVP_PKEY
instance and returns a handle to the same key.
Applies to
See also
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.