TripleDESCng.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 or sets the key for the TripleDESCng algorithm.
public:
virtual property cli::array <System::Byte> ^ Key { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public override byte[] Key { get; set; }
member this.Key : byte[] with get, set
Public Overrides Property Key As Byte()
The key for the TripleDESCng algorithm.
If you've created the TripleDESCng object using an existing persisted key, when you read the value of the Key property, an attempt to export the key will be made. In this case, if the key is not exportable, a CryptographicException will be thrown.
In addition to that, if you set the value of the Key property, the persisted key will no longer be used and a temporary key will be used instead. If you need to use the persisted key again, a new instance of TripleDESCng class needs to be created.
Vara | Útgáfur |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
.NET umsögn
.NET er opið verkefni. Veldu tengil til að gefa umsögn: