Class EmailLinkedResource
Represents an embedded image for email with Content-ID reference.
public record EmailLinkedResource
- Inheritance
-
objectEmailLinkedResource
Constructors
EmailLinkedResource(string, byte[], string, string)
Represents an embedded image for email with Content-ID reference.
public EmailLinkedResource(string ContentId, byte[] Data, string ContentType, string FileName)
Parameters
ContentIdstringThe Content-ID used to reference the image in HTML (e.g., "logo" for src="cid:logo").
Databyte[]The image data as a byte array.
ContentTypestringThe MIME content type (e.g., "image/png").
FileNamestringThe filename for the attachment.
Properties
ContentId
The Content-ID used to reference the image in HTML (e.g., "logo" for src="cid:logo").
public string ContentId { get; init; }
Property Value
- string
ContentType
The MIME content type (e.g., "image/png").
public string ContentType { get; init; }
Property Value
- string
Data
The image data as a byte array.
public byte[] Data { get; init; }
Property Value
- byte[]
FileName
The filename for the attachment.
public string FileName { get; init; }
Property Value
- string