ews-cpp  0.9
Public Member Functions | Static Public Member Functions | List of all members
ews::attachment_id Class Referencefinal

Contains the unique identifier of an attachment. More...

#include <ews.hpp>

Public Member Functions

const std::string & id () const EWS_NOEXCEPT
 
const item_idroot_item_id () const EWS_NOEXCEPT
 Returns the item_id of the parent or root item. More...
 
std::string to_xml () const
 
bool valid () const EWS_NOEXCEPT
 Whether this attachment_id is valid.
 

Static Public Member Functions

static attachment_id from_xml_element (const rapidxml::xml_node<> &elem)
 Makes an attachment_id instance from an <AttachmentId> element.
 

Detailed Description

Contains the unique identifier of an attachment.

The AttachmentId element identifies an item or file attachment. This element is used in CreateAttachment responses.

Member Function Documentation

const std::string& ews::attachment_id::id ( ) const
inline

Returns the string representing the unique identifier of an attachment

const item_id& ews::attachment_id::root_item_id ( ) const
inline

Returns the item_id of the parent or root item.

The root item is the item that contains the attachment.

Note
: the returned item_id is only valid and meaningful when you obtained this attachment_id in a call to service::create_attachment.

The documentation for this class was generated from the following file: