PrivateKey.KeySpec property

[The KeySpec property is available for use in the operating systems specified in the Requirements section. Instead, use the X509Certificate2.PrivateKey Property in the System.Security.Cryptography.X509Certificates namespace.]

The KeySpec property retrieves the key specification.

Syntax

PrivateKey.KeySpec As CAPICOM_KEY_SPEC

Property value

A value of the CAPICOM_KEY_SPEC enumeration that indicates the key specification. The following table shows the possible values.

Value Meaning
CAPICOM_KEY_SPEC_KEYEXCHANGE
The key can be used for encryption and signing.
CAPICOM_KEY_SPEC_SIGNATURE
The key can be used only for signing.

 

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

PrivateKey