Export (0) Print
Expand All

AsymmetricAlgorithm.LegalKeySizes Property

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

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

abstract LegalKeySizes : KeySizes[] with get 
override LegalKeySizes : KeySizes[] with get

Property Value

Type: 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.

The following code example demonstrates how to call the LegalKeySizes property to retrieve the MinSize, MaxSize, and SkipSize properties. This code example is part of a larger example provided for the AsymmetricAlgorithm class.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft