Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SymmetricAlgorithm::LegalKeySizes Property

 

Gets the key sizes, in bits, that are supported by the symmetric algorithm.

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

public:
property array<KeySizes^>^ LegalKeySizes {
	virtual array<KeySizes^>^ get();
}

Property Value

Type: array<System.Security.Cryptography::KeySizes^>^

An array that contains the key sizes supported by the algorithm.

The symmetric algorithm supports only key sizes that match an entry in this array.

The following example shows the value of LegalKeySizes for the symmetric algorithms.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft