Skip to content

libcURL.MIMEMessage.GetElement

Andrew Lambert edited this page Nov 26, 2022 · 3 revisions

libcURL.MIMEMessage.GetElement

Method Signatures

 Function GetElement(Index As Integer) As libcURL.MIMEMessagePart
 Function GetElement(Name As String) As Integer

Parameters

GetElement(Integer)

Name Type Comment
Index Integer The index of the element to get.

GetElement(String)

Name Type Comment
Name String The name of the element to get.

Return value

If you specify the name this method returns the index of the first element with that name, or -1 if no element matches the name. If you pass the index then this method returns a reference to the MIMEMessagePart at that index; if the index is out of bounds then an OutOfBoundsException will be raised.

Remarks

This method allows you to enumerate the message parts. Pass the name of the message part to get its index, pass the index to get a reference to the part itself.

Clone this wiki locally