Click or drag to resize
MOVEitMessageInfoAttachmentAddBuffer Method
Adds the given byte array buffer to the list of attachments.

Namespace: MOVEit.DMZ.API
Assembly: MOVEit.DMZ.API (in MOVEit.DMZ.API.dll) Version: 9.0.0.0
Syntax
public bool AttachmentAddBuffer(
	byte[] Buffer,
	string Filename
)

Parameters

Buffer
Type: SystemByte
Contents of file to attach to the message.
Filename
Type: SystemString
Name of file to attach to the message.

Return Value

Type: Boolean
true if successful; otherwise, false.
Remarks
NOTE: This method will not set the StatusDescription property when an error occurs. If false is returned, check to make sure the given filename hasn't already been added as an attachment. Also make sure the message state is "Pending".
See Also