Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.
Assembly: mscorlib (in mscorlib.dll)
The valid key sizes are specified by the particular implementation of the asymmetric algorithm and are listed in the LegalKeySizes property.
The following code example demonstrates how to override the property to verify that it falls within the range identified in the local keySizes member variable. This code example is part of a larger example provided for the AsymmetricAlgorithm class.