KeySize Property
Collapse the table of content
Expand the table of content

SymmetricAlgorithm.KeySize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.

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

'Declaration
Public Overridable Property KeySize As Integer

Property Value

Type: System.Int32
The size, in bits, of the secret key used by the symmetric algorithm.

ExceptionCondition
CryptographicException

The key size is not valid.

The valid key sizes are specified by the particular symmetric algorithm implementation and are listed in the LegalKeySizes property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft