Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
Attachment Class
Attachment Properties
Attachment Methods
Attachment Events

# Attachment Class

Attachment class is representing a message optional parameter. It can contain any file uploaded by sending participant.
Inheritance Hierarchy
System
Object
Avaya.ClientServices
Attachment

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
Copy

    public class Attachment

The Attachment type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| AttachmentID | The unique ID of the attachment.
| ConsumeCapability | Returns a Capability object that indicates if the attachment can be consumed.
| DownloadCapability | Returns a Capability object that indicates if the attachment can be downloaded.
| Duration | Duration of video or audio attachment represented in seconds.
| IsGeneratedContent | Indicates whether attachment was generated by client application or provided by user.
| IsThumbnail | Is attachment a thumbnail.
| Location | Location of attachment.
| MessageID | The ID of the message that the attachment is associated with.
| MimeType | Mime Type of attachment.
| Name | Name of attachment.
| RemoveCapability | Returns a Capability object that indicates if the attachment can be removed.
| Size | Size of attachment in bytes.
| Status | Status of attachment.
| UpdateIsGeneratedContentCapability | Returns a Capability object that indicates if the attachment's "generated content" property can be changed.
| UpdateIsThumbnailCapability | Returns a Capability object that indicates if the attachment's thumbnail property can be changed.
| UpdateLocationCapability | Returns a Capability object that indicates if the attachment's location property can be changed.
| UpdateMimeTypeCapability | Returns a Capability object that indicates if the attachment's MIME type property can be changed.
| UpdateNameCapability | Returns a Capability object that indicates if the attachment's name property can be changed.

Top
Methods

| Name | Description
--- | --- | ---
| Consume | Returns the location of the attachment so that it can be opened by the application. This method has the additional effect of changing the status of the attachment to Opened.
| Download | Start the download of the attachment asynchronously.
| SetIsGeneratedContent | Set IsGeneratedContent property.
| SetIsThumbnail | Set IsThumbnail property.
| SetLocation | Set attachment location.
| SetMimeType | Set attachment MIME type.
| SetName | Set attachment name.

Top
Events

| Name | Description
--- | --- | ---
| AttachmentCapabilitiesChanged | Event raised when the capabilities have been changed.
| AttachmentIsGeneratedContentChanged | Event raised when the IsGeneratedContent attribute has been changed.
| AttachmentIsThumbnailChanged | Event raised when the IsThumbnail attribute has been changed.
| AttachmentLocationChanged | Event raised when the location has been changed.
| AttachmentMimeTypeChanged | Event raised when the MIME type has been changed.
| AttachmentNameChanged | Event raised when the name has been changed.
| AttachmentStatusChanged | Event raised when the status has been changed.

Top
Remarks
If user is sending a picture, the client application is responsible for creating a second, preview picture and setting proper object parameters. In the case of any other attachment type, a preview is not needed. An attachment can be removed, if parent message hasn't been sent yet.
See Also

#### Reference

Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.