<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.11" />

System.Security.Cryptography.Pkcs.ContentInfo

public sealed class ContentInfo
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.
namespace System.Security.Cryptography.Pkcs { public sealed class ContentInfo { public Oid ContentType { get; } public byte[] Content { get; } public ContentInfo(byte[] content); public ContentInfo(Oid contentType, byte[] content); public static Oid GetContentType(byte[] encodedMessage); public static Oid GetContentType(ReadOnlySpan<byte> encodedMessage); } }