Attributes 对象

[CAPICOM 是一个仅限 32 位的组件,可用于以下操作系统:Windows Server 2008、Windows Vista、Windows XP。 请改用 System.Security.Cryptography 命名空间中的 CryptographicAttributeObjectCollection 类。]

Attributes 对象表示 Attribute 对象的集合。 每个 Attribute 对象表示消息的单个属性。

何时使用

Attributes 对象用于执行以下任务:

  • 在集合中添加或删除特定的 Attribute 对象。
  • 清除集合。
  • 检索集合中的属性数。
  • 从集合中检索特定的 Attribute 对象。
  • 循环访问集合。

成员

Attributes 对象具有以下类型的成员:

方法

Attributes 对象具有这些方法。

方法 说明
添加 将 Attribute 对象添加到集合。
清除 清除集合中的所有 Attribute 对象。
删除 从集合中删除 Attribute 对象。

 

属性

Attributes 对象具有这些属性。

属性 访问类型 说明
_NewEnum
只读
检索对象上的 IEnumVARIANT 接口,该接口可用于枚举集合。 此属性在 Visual Basic Scripting Edition (VBScript) 中隐藏。
Count
只读
检索集合中的 Attribute 对象数。
项目
只读
检索表示索引属性的 Attribute 对象。 这是默认属性。

 

备注

无法创建 Attributes 对象。

要求

要求 值
客户端支持终止
Windows Vista
终止服务器支持
Windows Server 2008
可再发行组件
Windows Server 2003 和 Windows XP 上的 CAPICOM 2.0 或更高版本
DLL
Capicom.dll

另请参阅

加密对象