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

Remarks

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

.NET Framework Security

See Also

Reference

AsymmetricAlgorithm Class

System.Security.Cryptography Namespace