[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, and Windows XP. Instead, use the X509Certificate2Collection Class in the System.Security.Cryptography.X509Certificates namespace.]
The Count property retrieves the number of Certificate objects in the collection.
Syntax
Certificates.Count As Long
Property value
The number of Certificate objects in the collection. Each Certificate object represents a single certificate in the collection.
Remarks
CAPICOM only supports a single certificate for the smart card store. Even if the smart card store contains more than one certificate, this property will contain 1. For more information about the smart card store, see the CAPICOM_SMART_CARD_USER_STORE member of the CAPICOM_STORE_LOCATION enumeration.
Requirements
| Requirement | Value |
|---|---|
| End of client support | Windows Vista |
| End of server support | Windows Server 2008 |
| Redistributable | CAPICOM 2.0 or later on Windows Server 2003 and Windows XP |
| DLL | Capicom.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
