Share via


EmailAttachment Class

Definition

Attachment to the email.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.EmailAttachmentTypeConverter))]
public class EmailAttachment : Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.EmailAttachmentTypeConverter))>]
type EmailAttachment = class
    interface IEmailAttachment
    interface IJsonSerializable
Public Class EmailAttachment
Implements IEmailAttachment
Inheritance
EmailAttachment
Attributes
Implements

Constructors

EmailAttachment()

Creates an new EmailAttachment instance.

Properties

ContentId

Unique identifier (CID) to reference an inline attachment.

ContentInBase64

Base64 encoded contents of the attachment

ContentType

MIME type of the content being attached.

Name

Name of the attachment

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of EmailAttachment.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of EmailAttachment.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment.

FromJsonString(String)

Creates a new instance of EmailAttachment, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of EmailAttachment into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to