This documentation is archived and is not being maintained.

SymmetricAlgorithm.LegalKeySizes Property

Gets the key sizes that are supported by the symmetric algorithm.

[Visual Basic]
Public Overridable ReadOnly Property LegalKeySizes As KeySizes ()
public virtual KeySizes[] LegalKeySizes {get;}
public: __property virtual KeySizes* get_LegalKeySizes();
public function get LegalKeySizes() : KeySizes[];

Property Value

An array containing the key sizes supported by the algorithm.


Only key sizes that match an entry in this array are supported by the symmetric algorithm.


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