Edit

Share via


MLDsaCng.GetKey Method

Definition

Gets a new CngKey representing the key used by the current instance.

public:
 System::Security::Cryptography::CngKey ^ GetKey();
public System.Security.Cryptography.CngKey GetKey();
member this.GetKey : unit -> System.Security.Cryptography.CngKey
Public Function GetKey () As CngKey

Returns

Exceptions

This instance has been disposed.

Remarks

This CngKey object is not the same as the one passed to MLDsaCng(CngKey), if that constructor was used. However, it will point to the same CNG key.

Applies to