SlhDsaCng.GetKey 方法

定义

获取表示当前实例使用的键的新 CngKey 值。

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

返回

例外

此实例已释放。

注解

如果使用该构造函数,则此 CngKey 对象与传递给 SlhDsaCng(CngKey)该对象的对象不同。 但是,它将指向同一 CNG 键。

适用于