getMessagePartByID function
- Last Updated: August 26, 2021
- 1 minute read
- OpenEdge
- Version 12.2
Retrieves a message part corresponding to the given contentID.
Syntax
|
Applies to
Message objects
Notes
- When you use the same handle variable to retrieve multiple message parts, after each retrieval, call deleteMessage procedure on the handle variable to free the message part.
- The
getMessagePartByIDfunction returns the content-type of the message. You can use it to identify the message type of the message part.
See also
createMultipartMessage procedure, addBytesPart procedure, addMessagePart procedure, addTextPart procedure, isMessagePart function, getContentType, getPartCount function, getMessagePartByIndex function, getTextPartByID function, writeBytesFromRaw procedure, readBytesToRaw procedure, setMemptr procedure, getMemptr function
For more information, see the MultipartMessage and the MultiPartMessage example.