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 that are supported by the asymmetric algorithm.

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

public virtual KeySizes[] LegalKeySizes { get; }

Property Value

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

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