CertificatePolicies object

[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 CertificatePolicies object represents a collection of PolicyInformation objects. Each PolicyInformation object represents a single certificate policy.

When to use

The CertificatePolicies object is used to perform the following tasks:

  • Retrieve the number of certificate policies in the collection.
  • Retrieve a specific PolicyInformation object from the collection.
  • Iterate through the collection.

Members

The CertificatePolicies object has these types of members:

Properties

The CertificatePolicies object has these properties.

Property Access type Description
_NewEnum
Read-only
Retrieves an IEnumVARIANT interface on an object that can be used to enumerate the collection. This property is hidden within Visual Basic Scripting Edition (VBScript).
Count
Read-only
Retrieves the number of PolicyInformation objects in the collection.
Item
Read-only
Retrieves a PolicyInformation object that represents the indexed certificate policy of the collection. This is the default property.

 

Remarks

The CertificatePolicies object cannot be created.

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