Table of Contents

Class Attachment

Namespace
Vonage.Messages
Assembly
Vonage.dll

Represents an attachment (image, audio, video, or file) for a message.

public class Attachment
Inheritance
Attachment
Inherited Members

Properties

Caption

Additional text to accompany the attachment.

[JsonPropertyOrder(2)]
public string Caption { get; set; }

Property Value

string

Type

The MIME type of the attachment (e.g., "image/jpeg", "video/mp4"). Optional.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyOrder(0)]
public string Type { get; set; }

Property Value

string

Url

The publicly accessible URL of the attachment.

[JsonPropertyOrder(1)]
public string Url { get; set; }

Property Value

string