Szerkesztés

Megosztás a következőn keresztül:


ExtendedProperties 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 Platform Invocation Services (PInvoke) to call the Win32 API function CertGetCertificateContextProperty and obtain the properties. For information about PInvoke, see Platform Invoke Tutorial. The .NET and CryptoAPI via P/Invoke: Part 1 and .NET and CryptoAPI via P/Invoke: Part 2 subsections of Extending .NET Cryptography with CAPICOM and P/Invoke may also be helpful.]

The ExtendedProperties object represents a collection of ExtendedProperty objects. Each object represents a single extended property.

When to use

The ExtendedProperties object is used to perform the following tasks:

  • Add or remove an ExtendedProperty object from the collection.
  • Retrieve the number of extended properties in the collection.
  • Retrieve a specific ExtendedProperty object from the collection.
  • Iterate through the collection.

Members

The ExtendedProperties object has these types of members:

Methods

The ExtendedProperties object has these methods.

Method Description
Add Adds an ExtendedProperty object to the collection.
Remove Removes an ExtendedProperty object from the collection.

 

Properties

The ExtendedProperties 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 ExtendedProperty objects in the collection.
Item
Read-only
Retrieves an ExtendedProperty object that represents the indexed extended property of the collection. This is the default property.

 

Remarks

The ExtendedProperties 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