Share via


LegalKeySizes Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overridable ReadOnly Property LegalKeySizes As KeySizes()
public virtual KeySizes[] LegalKeySizes { get; }
public:
virtual property array<KeySizes^>^ LegalKeySizes {
    array<KeySizes^>^ get ();
}
abstract LegalKeySizes : KeySizes[] with get
override LegalKeySizes : KeySizes[] with get
function get LegalKeySizes () : KeySizes[]

Property Value

Type: array<System.Security.Cryptography. . :: . .KeySizes> [] () [] []
An array that contains the key sizes supported by the algorithm.

Remarks

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

.NET Framework Security

See Also

Reference

SymmetricAlgorithm Class

System.Security.Cryptography Namespace