| Platform SDK: CDO for Windows 2000 |
The IBodyPart interface defines seven methods, which are listed in the following table.
IBodyPart Interface Methods
| Method | Description |
|---|---|
| AddBodyPart | Adds a child BodyPart object to the object’s BodyParts collection. |
| GetDecodedContentStream | Returns a _Stream interface on a Stream object that contains the contents of the body part in decoded format. |
| GetEncodedContentStream | Returns a _Stream interface on a Stream object that contains the contents of the body part in encoded format. |
| GetFieldParameter | Returns the requested parameter value for the indicated header field; for example, when set to a text type, charset is a standard parameter for the Content-Type header field. |
| GetInterface | Returns the requested interface on the object. |
| GetStream | Returns a _Stream interface on a Stream object that contains the MIME formatted stream for this object and all child objects in the hierarchy. |
| SaveToFile | Saves the contents to the file specified. The contents are saved in decoded format. |