MOVEitMessageInfoAttachmentAddBuffer Method |
Adds the given byte array buffer to the list of attachments.
Namespace: MOVEit.DMZ.APIAssembly: MOVEit.DMZ.API (in MOVEit.DMZ.API.dll) Version: 9.0.0.0
Syntax public bool AttachmentAddBuffer(
byte[] Buffer,
string Filename
)
Public Function AttachmentAddBuffer (
Buffer As Byte(),
Filename As String
) As Boolean
public:
bool AttachmentAddBuffer(
array<unsigned char>^ 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:
Booleantrue 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