attachBytes (method)
Creates an attachment from a memory buffer.
Syntax
- (int)attachBytes:(NSData*)data;
public func attachBytes(_ data: Data) throws -> Int32
Remarks
Use this method to create an attachment from a memory buffer. Use Attachments property to provide further attachment details.
The method returns the index of the new attachment in the Attachments list.