ContentInfo 类

定义

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

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

构造函数

名称 说明
ContentInfo(Byte[])

构造 ContentInfo(Byte[]) 函数通过使用字节值的数组作为数据以及表示内容类型的默认对象标识符(OID)来创建类的实例 ContentInfo

ContentInfo(Oid, Byte[])

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

属性

名称 说明
Content

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

ContentType

ContentType 属性检索 Oid 包含 CMS/PKCS #7 消息内部内容的内容类型的对象标识符 (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)

适用于