CngKey.KeySize Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the key size in bits.

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

public int KeySize { get; }

Property Value

Type: System.Int32

The key size in bits.

.NET Framework
Available since 3.5
Return to top