Click or drag to resize
Attachment Class
Attachment class is representing a message optional parameter. It can contain any file uploaded by sending participant.
Inheritance Hierarchy
SystemObject
  Avaya.ClientServicesAttachment

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 493.0.70.0
Syntax
C#
public class Attachment

The Attachment type exposes the following members.

Properties
  NameDescription
Public propertyAttachmentID
The unique ID of the attachment.
Public propertyConsumeCapability
Returns a Capability object that indicates if the attachment can be consumed.
Public propertyDownloadCapability
Returns a Capability object that indicates if the attachment can be downloaded.
Public propertyDuration
Duration of video or audio attachment represented in seconds.
Public propertyIsGeneratedContent
Indicates whether attachment was generated by client application or provided by user.
Public propertyIsThumbnail
Is attachment a thumbnail.
Public propertyLocation
Location of attachment.
Public propertyMessageID
The ID of the message that the attachment is associated with.
Public propertyMimeType
Mime Type of attachment.
Public propertyName
Name of attachment.
Public propertyRemoveCapability
Returns a Capability object that indicates if the attachment can be removed.
Public propertySize
Size of attachment in bytes.
Public propertyStatus
Status of attachment.
Public propertyUpdateIsGeneratedContentCapability
Returns a Capability object that indicates if the attachment's "generated content" property can be changed.
Public propertyUpdateIsThumbnailCapability
Returns a Capability object that indicates if the attachment's thumbnail property can be changed.
Public propertyUpdateLocationCapability
Returns a Capability object that indicates if the attachment's location property can be changed.
Public propertyUpdateMimeTypeCapability
Returns a Capability object that indicates if the attachment's MIME type property can be changed.
Public propertyUpdateNameCapability
Returns a Capability object that indicates if the attachment's name property can be changed.
Top
Methods
  NameDescription
Public methodConsume
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.
Public methodDownload
Start the download of the attachment asynchronously.
Public methodSetIsGeneratedContent
Set IsGeneratedContent property.
Public methodSetIsThumbnail
Set IsThumbnail property.
Public methodSetLocation
Set attachment location.
Public methodSetMimeType
Set attachment MIME type.
Public methodSetName
Set attachment name.
Top
Events
  NameDescription
Public eventAttachmentCapabilitiesChanged
Event raised when the capabilities have been changed.
Public eventAttachmentIsGeneratedContentChanged
Event raised when the IsGeneratedContent attribute has been changed.
Public eventAttachmentIsThumbnailChanged
Event raised when the IsThumbnail attribute has been changed.
Public eventAttachmentLocationChanged
Event raised when the location has been changed.
Public eventAttachmentMimeTypeChanged
Event raised when the MIME type has been changed.
Public eventAttachmentNameChanged
Event raised when the name has been changed.
Public eventAttachmentStatusChanged
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