RSACng.Key Property
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.
Gets the key that will be used by the RSACng object for any cryptographic operation that it performs.
public:
property System::Security::Cryptography::CngKey ^ Key { System::Security::Cryptography::CngKey ^ get(); };
public System.Security.Cryptography.CngKey Key { get; }
member this.Key : System.Security.Cryptography.CngKey
Public ReadOnly Property Key As CngKey
The key used by the RSACng object.
The returned CngKey object is disposed if the key is reset, for instance by changing the CngKey.KeySize property, by using the RSA.ImportParameters to create a new key, or by disposing of the parent RSA object. Therefore, you should ensure that the key object is no longer used in these cases.
This CngKey object is not the same as the CngKey object passed to the RSACng constructor, if that constructor was used. However, it will point to the same CNG key.
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9, 10 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: