Class ContentInfo
A CMS ContentInfo envelope (RFC 5652 §3). Wraps a typed content structure.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class ContentInfo
Constructors
View SourceContentInfo(string, byte[]?)
Initializes a new instance of the ContentInfo class.
Declaration
public ContentInfo(string contentType, byte[]? content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contentType | The content type used by the operation. |
| byte[] | content | Specifies the content value. |
Properties
View SourceContent
Gets the DER-encoded inner structure, or null if absent.
Declaration
public byte[]? Content { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
ContentType
Gets the content type OID.
Declaration
public string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |