CertificatePolicies.Count property

[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 X509Extension Class in the System.Security.Cryptography.X509Certificates namespace by calling the constructor that takes an OID as a parameter, and then use the OID for Certificate Policies to retrieve the certificate policies.]

The Count property retrieves the number of PolicyInformation objects in the collection.

This property is read-only.


CertificatePolicies.Count As Long

Property value

The number of PolicyInformation objects in the collection. Each PolicyInformation object represents a single certificate policy in the collection.


The Count property can be used to specify the last PolicyInformation object in the collection when retrieving a specific PolicyInformation object using the CertificatePolicies.Item property.


End of client support

Windows Vista

End of server support

Windows Server 2008


CAPICOM 2.0 or later on Windows Server 2003 and Windows XP