Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SymmetricAlgorithm.GenerateKey Method

When overridden in a derived class, generates a random Key to be used for the algorithm.

[Visual Basic]
Public MustOverride Sub GenerateKey()
public abstract void GenerateKey();
public: virtual void GenerateKey() = 0;
public abstract function GenerateKey();


Use this method to generate a random key when none is specified.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SymmetricAlgorithm Class | SymmetricAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services

© 2015 Microsoft