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 |
---|---|
|
The key can be used for encryption and signing. |
|
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 |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for