ContentInfo 类

定义

ContentInfo 类表示 CMS/PKCS #7 标准文档中定义的 CMS/PKCS #7 ContentInfo 数据结构。 此数据结构是所有 CMS/PKCS #7 消息的基础。

public ref class ContentInfo sealed
public sealed class ContentInfo
type ContentInfo = class
Public NotInheritable Class ContentInfo
继承
ContentInfo

构造函数

ContentInfo(Byte[])

ContentInfo(Byte[]) 构造函数通过使用作为数据的字节值数组和表示内容类型的默认 object identifier (OID) 来创建 ContentInfo 类的实例。

ContentInfo(Oid, Byte[])

ContentInfo(Oid, Byte[]) 构造函数通过使用指定的内容类型和用作数据的字节值数组来创建 ContentInfo 类的实例。

属性

Content

Content 属性检索 CMS/PKCS #7 消息的内容。

ContentType

ContentType 属性检索 Oid 对象,该对象包含 CMS/PKCS #7 消息内部内容的内容类型的 object identifier (OID)。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
Finalize()

在通过垃圾回收将 ContentInfo 实例回收之前,释放非托管资源并执行其他清理操作。

GetContentType(Byte[])

检索编码的 CMS ContentInfo 消息的外部内容类型。

GetContentType(ReadOnlySpan<Byte>)

检索编码的 CMS ContentInfo 消息的外部内容类型。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于