Partager via


KeyNumber Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies whether to create an asymmetric signature key or an asymmetric exchange key.

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

Syntax

'Declaration
Public Enumeration KeyNumber
public enum KeyNumber

Members

Member name Description
Supported by Silverlight for Windows Phone Exchange An exchange key pair used to encrypt session keys so that they can be safely stored and exchanged with other users.

This value corresponds to the AT_KEYEXCHANGE value used in the unmanaged Microsoft Cryptographic API (CAPI).

Supported by Silverlight for Windows Phone Signature A signature key pair used for authenticating digitally signed messages or files.

This value corresponds to the AT_SIGNATURE value used in the unmanaged Microsoft Cryptographic API (CAPI).

Remarks

Use the KeyNumber enumeration with the KeyNumber property to inspect a key type or with the KeyNumber field to specify a key type.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.