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)

Public Overrides Sub GenerateKey

Exception Condition

The key could not be generated.

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