ContentInfo 类

定义

ContentInfo 类表示 CMS/PKCS #7 标准文档中定义的 CMS/PKCS #7 ContentInfo 数据结构。The ContentInfo class represents the CMS/PKCS #7 ContentInfo data structure as defined in the CMS/PKCS #7 standards document. 此数据结构是所有 CMS/PKCS #7 消息的基础。This data structure is the basis for all CMS/PKCS #7 messages.

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 类的实例。The ContentInfo(Byte[]) constructor creates an instance of the ContentInfo class by using an array of byte values as the data and a default object identifier (OID) that represents the content type.

ContentInfo(Oid, Byte[])

ContentInfo(Oid, Byte[]) 构造函数通过使用指定的内容类型和用作数据的字节值数组来创建 ContentInfo 类的实例。The ContentInfo(Oid, Byte[]) constructor creates an instance of the ContentInfo class by using the specified content type and an array of byte values as the data.

属性

Content

Content 属性检索 CMS/PKCS #7 消息的内容。The Content property retrieves the content of the CMS/PKCS #7 message.

ContentType

ContentType 属性检索 Oid 对象,该对象包含 CMS/PKCS #7 消息内部内容的内容类型的 object identifier (OID)。The ContentType property retrieves the Oid object that contains the object identifier (OID) of the content type of the inner content of the CMS/PKCS #7 message.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Finalize()

在通过垃圾回收将 ContentInfo 实例回收之前,释放非托管资源并执行其他清理操作。Releases unmanaged resources and performs other cleanup operations before the ContentInfo instance is reclaimed by garbage collection.

GetContentType(Byte[])

检索编码的 CMS ContentInfo 消息的外部内容类型。Retrieves the outer content type of an encoded CMS ContentInfo message.

GetContentType(ReadOnlySpan<Byte>)

检索编码的 CMS ContentInfo 消息的外部内容类型。Retrieves the outer content type of an encoded CMS ContentInfo message.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于