GenerateKey Method
Collapse the table of content
Expand the table of content

AesCryptoServiceProvider.GenerateKey Method ()


Generates a random key to use for the algorithm.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

override GenerateKey : unit -> unit

Exception Condition

The key could not be generated.

.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft