ContentInfo Class

Definition

The ContentInfo class represents the CMS/PKCS #7 ContentInfo data structure as defined in the CMS/PKCS #7 standards document. This data structure is the basis for all CMS/PKCS #7 messages.

public sealed class ContentInfo
Inheritance
ContentInfo

Constructors

ContentInfo(Byte[])

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[])

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.

Properties

Content

The Content property retrieves the content of the CMS/PKCS #7 message.

ContentType

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.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Releases unmanaged resources and performs other cleanup operations before the ContentInfo instance is reclaimed by garbage collection.

GetContentType(Byte[])

Retrieves the outer content type of an encoded CMS ContentInfo message.

GetContentType(ReadOnlySpan<Byte>)

Retrieves the outer content type of an encoded CMS ContentInfo message.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9