Export (0) Print
Expand All

AesCryptoServiceProvider.GenerateKey Method

Generates a random key to use for the algorithm.

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

abstract GenerateKey : unit -> unit  
override GenerateKey : unit -> unit

ExceptionCondition
CryptographicException

The key could not be generated.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft