Aspose::Email::Clients::Graph::IGraphClient Class Referenceabstract

Represents the interface for Exchange REST client. More...

Inherits IDisposable.

Public Member Functions

virtual System::SharedPtr< IMultipleServicesTokenProviderget_MultipleServicesTokenProvider ()=0
 Gets an object allows to retrieve OAuth access token. More...
 
virtual void set_MultipleServicesTokenProvider (System::SharedPtr< IMultipleServicesTokenProvider > value)=0
 Sets an object allows to retrieve OAuth access token. More...
 
virtual System::SharedPtr< ITokenProviderget_TokenProvider ()=0
 Gets an object allows to retrieve OAuth access token. More...
 
virtual void set_TokenProvider (System::SharedPtr< ITokenProvider > value)=0
 Sets an object allows to retrieve OAuth access token. More...
 
virtual System::SharedPtr< System::Net::IWebProxy > get_Proxy ()=0
 Gets data to proxy access to Exchange server. More...
 
virtual void set_Proxy (System::SharedPtr< System::Net::IWebProxy > value)=0
 Sets data to proxy access to Exchange server. More...
 
virtual int32_t get_Timeout ()=0
 Gets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More...
 
virtual void set_Timeout (int32_t value)=0
 Sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More...
 
virtual System::String get_TenantId ()=0
 Gets tenant identifier More...
 
virtual void set_TenantId (System::String value)=0
 Sets tenant identifier More...
 
virtual System::String get_ResourceId ()=0
 Gets resource id. For instance for users it may be user principal name (UPN) or user id More...
 
virtual void set_ResourceId (System::String value)=0
 Sets resource id. For instance for users it may be user principal name (UPN) or user id More...
 
virtual ResourceType get_Resource ()=0
 Gets resource type. More...
 
virtual void set_Resource (ResourceType value)=0
 Sets resource type. More...
 
virtual void Delete (System::String id)=0
 Delete object. More...
 
virtual System::SharedPtr< FolderInfoCollectionListFolders ()=0
 List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox. More...
 
virtual System::SharedPtr< FolderInfoCollectionListFolders (System::String id)=0
 List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox. More...
 
virtual System::SharedPtr< FolderInfoGetFolder (System::String id)=0
 Gets folder by an id. More...
 
virtual System::SharedPtr< FolderInfoCreateFolder (System::String folderName)=0
 Create new folder. More...
 
virtual System::SharedPtr< FolderInfoCreateFolder (System::String parentFolderId, System::String folderName)=0
 Create new folder. More...
 
virtual System::SharedPtr< FolderInfoUpdateFolder (System::SharedPtr< FolderInfo > folderInfo)=0
 Updates folder. More...
 
virtual System::SharedPtr< FolderInfoCopyFolder (System::String newParentId, System::String itemId)=0
 Copy a mailfolder and its contents to another mailfolder. More...
 
virtual System::SharedPtr< FolderInfoMoveFolder (System::String newParentId, System::String itemId)=0
 Move a mailfolder and its contents to another mailfolder. More...
 
virtual System::SharedPtr< MessageInfoCollectionListMessages (System::String id)=0
 List MessageInfo from the parent folder. More...
 
virtual System::SharedPtr< GraphMessagePageInfoListMessages (System::String id, System::SharedPtr< PageInfo > page, System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query)=0
 List MessageInfo from the parent folder. More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiAttachmentCreateAttachment (System::String parentId, System::SharedPtr< Aspose::Email::Mapi::MapiAttachment > attachment)=0
 Creates new attachment for specified item More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiAttachmentFetchAttachment (System::String id)=0
 Gets attachment for specified id More...
 
virtual void DeleteAttachment (System::String id)=0
 Removes attachment More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiAttachmentCollectionListAttachments (System::String id)=0
 List Attachments from the parent message. More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageFetchMessage (System::String id)=0
 Gets message in specified id More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageCreateMessage (System::String folderId, System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message)=0
 Creates message in specified folder More...
 
virtual System::SharedPtr< MailMessageCreateMessage (System::String folderId, System::SharedPtr< MailMessage > message)=0
 Creates message in specified folder More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageUpdateMessage (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message)=0
 Updates message More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageUpdateMessage (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message, System::SharedPtr< UpdateSettings > updateSettings)=0
 Updates message More...
 
virtual System::SharedPtr< MailMessageUpdateMessage (System::SharedPtr< MailMessage > message)=0
 Updates message More...
 
virtual System::SharedPtr< MailMessageUpdateMessage (System::SharedPtr< MailMessage > message, System::SharedPtr< UpdateSettings > updateSettings)=0
 Updates message More...
 
virtual void Send (System::String itemId)=0
 Send a message in the draft folder. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. The message is then saved in the Sent Items folder. More...
 
virtual void Send (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message)=0
 Sends email message More...
 
virtual void SendAsMime (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message)=0
 Sends email message using MIME format More...
 
virtual void Send (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message, bool saveToSentItems)=0
 Sends email message More...
 
virtual void Send (System::SharedPtr< MailMessage > message)=0
 Sends email message More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageCopyMessage (System::String newParentId, System::String itemId)=0
 Copy a Message to another mailfolder. More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageMoveMessage (System::String newParentId, System::String itemId)=0
 Move a message to another mailfolder. More...
 
virtual void SetRead (System::String itemId)=0
 Mark message as read More...
 
virtual System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< OutlookCategory > > > ListCategories ()=0
 Get all the categories that have been defined for the user. More...
 
virtual System::SharedPtr< OutlookCategoryCreateCategory (System::String displayName, CategoryPreset preset)=0
 Creates an OutlookCategory object in the user's master list of categories. More...
 
virtual System::SharedPtr< OutlookCategoryUpdateCategory (System::SharedPtr< OutlookCategory > category)=0
 Updates pre-set color constant for specified category More...
 
virtual System::SharedPtr< OutlookCategoryFetchCategory (System::String itemId)=0
 Get the properties and relationships of the specified outlookCategory object. More...
 
virtual System::SharedPtr< ClassificationOverrideCreateOrUpdateOverride (System::SharedPtr< MailAddress > sender, ClassificationType classifyAs)=0
 Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: More...
 
virtual System::SharedPtr< ClassificationOverrideCreateOrUpdateOverride (System::SharedPtr< ClassificationOverride > classificationOverride)=0
 Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: More...
 
virtual System::SharedPtr< ClassificationOverrideUpdateOverride (System::SharedPtr< ClassificationOverride > classificationOverride)=0
 Change the classifyAs field of an override as specified. You cannot use this method to change any other fields in an ClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use CreateOrUpdateOverride to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one with the new SMTP address is the only way to "update" the override for this sender. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.ReadWrite Delegated (personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite More...
 
virtual System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< ClassificationOverride > > > ListOverrides ()=0
 Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender.Initially, a user does not have any overrides. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.Read Delegated (personal Microsoft account) Mail.Read Application Mail.Read More...
 
virtual System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRuleCreateRule (System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRule > rule)=0
 Create a message rule by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite More...
 
virtual System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRule > > > ListRules ()=0
 Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read More...
 
virtual System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRuleFetchRule (System::String itemId)=0
 Get the properties and relationships of a message rule object. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read More...
 
virtual System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRuleUpdateRule (System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRule > rule)=0
 Change writable properties on a messageRule object and save the changes. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite More...
 
virtual System::SharedPtr< NotebookFetchNotebook (System::String itemId)=0
 Retrieve the properties and relationships of a notebook object. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All More...
 
virtual System::SharedPtr< NotebookCreateNotebook (System::SharedPtr< Notebook > notebook)=0
 Create a new OneNote notebook. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All More...
 
virtual System::SharedPtr< NotebookCollectionListNotebooks ()=0
 Retrieve a list of notebook objects. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All More...
 
virtual System::String CopyNotebook (System::String itemId, System::String groupId, System::String renameAs)=0
 Copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. Permissions One of the following permissions is required to call this API. Delegated(work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated(personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All More...
 
virtual System::SharedPtr< OnenoteOperationGetOneNoteOperationStatus (System::String operationId)=0
 Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. More...
 

Detailed Description

Represents the interface for Exchange REST client.

Member Function Documentation

◆ CopyFolder()

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::CopyFolder ( System::String  newParentId,
System::String  itemId 
)
pure virtual

Copy a mailfolder and its contents to another mailfolder.

Parameters
newParentIdNew parent folder id
itemIdItem id to be copied
Returns
Copied folder

◆ CopyMessage()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::CopyMessage ( System::String  newParentId,
System::String  itemId 
)
pure virtual

Copy a Message to another mailfolder.

Parameters
newParentIdNew parent folder id
itemIdItem id to be copied
Returns
Copied message

◆ CopyNotebook()

virtual System::String Aspose::Email::Clients::Graph::IGraphClient::CopyNotebook ( System::String  itemId,
System::String  groupId,
System::String  renameAs 
)
pure virtual

Copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. Permissions One of the following permissions is required to call this API. Delegated(work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated(personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All

Parameters
itemIdItem id to be copied
groupIdThe id of the group to copy to. Use only when copying to an Office 365 group.
renameAsThe name of the copy. Defaults to the name of the existing item.
Returns
If successful, this method returns an Operation-Location string. You may use this value to get the status of the operation.

◆ CreateAttachment()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiAttachment> Aspose::Email::Clients::Graph::IGraphClient::CreateAttachment ( System::String  parentId,
System::SharedPtr< Aspose::Email::Mapi::MapiAttachment attachment 
)
pure virtual

Creates new attachment for specified item

Parameters
parentIdItem id
attachmentAttachment to create
Returns
Returns created attachment

◆ CreateCategory()

virtual System::SharedPtr<OutlookCategory> Aspose::Email::Clients::Graph::IGraphClient::CreateCategory ( System::String  displayName,
CategoryPreset  preset 
)
pure virtual

Creates an OutlookCategory object in the user's master list of categories.

Parameters
displayNameA unique name that identifies a category in the user's mailbox.
presetpre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors
Returns
Category by which a user can group Outlook items such as messages and events

◆ CreateFolder() [1/2]

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::CreateFolder ( System::String  folderName)
pure virtual

Create new folder.

Parameters
folderNameFolder name
Returns
Returns created folder

◆ CreateFolder() [2/2]

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::CreateFolder ( System::String  parentFolderId,
System::String  folderName 
)
pure virtual

Create new folder.

Parameters
parentFolderIdParent folder id
folderNameFolder name
Returns
Returns folder for specified id

◆ CreateMessage() [1/2]

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::CreateMessage ( System::String  folderId,
System::SharedPtr< Aspose::Email::Mapi::MapiMessage message 
)
pure virtual

Creates message in specified folder

Parameters
folderIdParent folder id
messageMapi message to be created
Returns
Created message

◆ CreateMessage() [2/2]

virtual System::SharedPtr<MailMessage> Aspose::Email::Clients::Graph::IGraphClient::CreateMessage ( System::String  folderId,
System::SharedPtr< MailMessage message 
)
pure virtual

Creates message in specified folder

Parameters
folderIdParent folder id
messageMailMessage to be created
Returns

◆ CreateNotebook()

virtual System::SharedPtr<Notebook> Aspose::Email::Clients::Graph::IGraphClient::CreateNotebook ( System::SharedPtr< Notebook notebook)
pure virtual

Create a new OneNote notebook. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All

Parameters
notebookNotebook to be created
Returns
Created notebook

◆ CreateOrUpdateOverride() [1/2]

virtual System::SharedPtr<ClassificationOverride> Aspose::Email::Clients::Graph::IGraphClient::CreateOrUpdateOverride ( System::SharedPtr< ClassificationOverride classificationOverride)
pure virtual

Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note:

  • If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values.
  • The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite
Parameters
classificationOverride
Returns

◆ CreateOrUpdateOverride() [2/2]

virtual System::SharedPtr<ClassificationOverride> Aspose::Email::Clients::Graph::IGraphClient::CreateOrUpdateOverride ( System::SharedPtr< MailAddress sender,
ClassificationType  classifyAs 
)
pure virtual

Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note:

  • If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values.
  • The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite
Parameters
senderEmail address information of the sender for whom the override is created.
classifyAsValue which specifies how incoming messages from a specific sender should always be classified as.
Returns

◆ CreateRule()

virtual System::SharedPtr<Aspose::Email::Clients::Exchange::InboxRule> Aspose::Email::Clients::Graph::IGraphClient::CreateRule ( System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRule rule)
pure virtual

Create a message rule by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite

Parameters
ruleRule to be created in inbox
Returns
Created rule

◆ Delete()

virtual void Aspose::Email::Clients::Graph::IGraphClient::Delete ( System::String  id)
pure virtual

Delete object.

Parameters
idObject id to delete

◆ DeleteAttachment()

virtual void Aspose::Email::Clients::Graph::IGraphClient::DeleteAttachment ( System::String  id)
pure virtual

Removes attachment

Parameters
idAttachment id to delete

◆ FetchAttachment()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiAttachment> Aspose::Email::Clients::Graph::IGraphClient::FetchAttachment ( System::String  id)
pure virtual

Gets attachment for specified id

Parameters
idAttachment id
Returns
Returns attachment

◆ FetchCategory()

virtual System::SharedPtr<OutlookCategory> Aspose::Email::Clients::Graph::IGraphClient::FetchCategory ( System::String  itemId)
pure virtual

Get the properties and relationships of the specified outlookCategory object.

Parameters
itemIdItem id to be fetched
Returns
Category specified by id

◆ FetchMessage()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::FetchMessage ( System::String  id)
pure virtual

Gets message in specified id

Parameters
idMessage id to fetch
Returns
Mapi message

◆ FetchNotebook()

virtual System::SharedPtr<Notebook> Aspose::Email::Clients::Graph::IGraphClient::FetchNotebook ( System::String  itemId)
pure virtual

Retrieve the properties and relationships of a notebook object. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All

Parameters
itemIdItem id
Returns
Notebook object

◆ FetchRule()

virtual System::SharedPtr<Aspose::Email::Clients::Exchange::InboxRule> Aspose::Email::Clients::Graph::IGraphClient::FetchRule ( System::String  itemId)
pure virtual

Get the properties and relationships of a message rule object. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read

Parameters
itemIdItem id
Returns
Inbox rule

◆ get_MultipleServicesTokenProvider()

virtual System::SharedPtr<IMultipleServicesTokenProvider> Aspose::Email::Clients::Graph::IGraphClient::get_MultipleServicesTokenProvider ( )
pure virtual

Gets an object allows to retrieve OAuth access token.

◆ get_Proxy()

virtual System::SharedPtr<System::Net::IWebProxy> Aspose::Email::Clients::Graph::IGraphClient::get_Proxy ( )
pure virtual

Gets data to proxy access to Exchange server.

◆ get_Resource()

virtual ResourceType Aspose::Email::Clients::Graph::IGraphClient::get_Resource ( )
pure virtual

Gets resource type.

◆ get_ResourceId()

virtual System::String Aspose::Email::Clients::Graph::IGraphClient::get_ResourceId ( )
pure virtual

Gets resource id. For instance for users it may be user principal name (UPN) or user id

◆ get_TenantId()

virtual System::String Aspose::Email::Clients::Graph::IGraphClient::get_TenantId ( )
pure virtual

Gets tenant identifier

◆ get_Timeout()

virtual int32_t Aspose::Email::Clients::Graph::IGraphClient::get_Timeout ( )
pure virtual

Gets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

◆ get_TokenProvider()

virtual System::SharedPtr<ITokenProvider> Aspose::Email::Clients::Graph::IGraphClient::get_TokenProvider ( )
pure virtual

Gets an object allows to retrieve OAuth access token.

◆ GetFolder()

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::GetFolder ( System::String  id)
pure virtual

Gets folder by an id.

Parameters
idFolder id
Returns
Returns folder for specified id

◆ GetOneNoteOperationStatus()

virtual System::SharedPtr<OnenoteOperation> Aspose::Email::Clients::Graph::IGraphClient::GetOneNoteOperationStatus ( System::String  operationId)
pure virtual

Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information.

Parameters
operationIdOperation id
Returns

◆ ListAttachments()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiAttachmentCollection> Aspose::Email::Clients::Graph::IGraphClient::ListAttachments ( System::String  id)
pure virtual

List Attachments from the parent message.

Parameters
idParent message id
Returns
Returns list of attachments of a message

◆ ListCategories()

virtual System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<OutlookCategory> > > Aspose::Email::Clients::Graph::IGraphClient::ListCategories ( )
pure virtual

Get all the categories that have been defined for the user.

Returns
Returns list of categories for the user

◆ ListFolders() [1/2]

virtual System::SharedPtr<FolderInfoCollection> Aspose::Email::Clients::Graph::IGraphClient::ListFolders ( )
pure virtual

List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.

Returns
Returns list of subfolders of the root folder

◆ ListFolders() [2/2]

virtual System::SharedPtr<FolderInfoCollection> Aspose::Email::Clients::Graph::IGraphClient::ListFolders ( System::String  id)
pure virtual

List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.

Parameters
idParent folder id
Returns
Returns list of subfolders of the root folder

◆ ListMessages() [1/2]

virtual System::SharedPtr<MessageInfoCollection> Aspose::Email::Clients::Graph::IGraphClient::ListMessages ( System::String  id)
pure virtual

List MessageInfo from the parent folder.

Parameters
idParent folder id
Returns
Returns list of MessageInfo of the folder

◆ ListMessages() [2/2]

virtual System::SharedPtr<GraphMessagePageInfo> Aspose::Email::Clients::Graph::IGraphClient::ListMessages ( System::String  id,
System::SharedPtr< PageInfo page,
System::SharedPtr< Aspose::Email::Tools::Search::MailQuery query 
)
pure virtual

List MessageInfo from the parent folder.

Parameters
idParent folder id
pageA page info
queryMailQuery that represents search query
Returns
Returns list of MessageInfo of the folder

◆ ListNotebooks()

virtual System::SharedPtr<NotebookCollection> Aspose::Email::Clients::Graph::IGraphClient::ListNotebooks ( )
pure virtual

Retrieve a list of notebook objects. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All

Returns
List of notebooks

◆ ListOverrides()

virtual System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<ClassificationOverride> > > Aspose::Email::Clients::Graph::IGraphClient::ListOverrides ( )
pure virtual

Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender.Initially, a user does not have any overrides. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.Read Delegated (personal Microsoft account) Mail.Read Application Mail.Read

Returns

◆ ListRules()

virtual System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<Aspose::Email::Clients::Exchange::InboxRule> > > Aspose::Email::Clients::Graph::IGraphClient::ListRules ( )
pure virtual

Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read

Returns
List of inbox rules

◆ MoveFolder()

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::MoveFolder ( System::String  newParentId,
System::String  itemId 
)
pure virtual

Move a mailfolder and its contents to another mailfolder.

Parameters
newParentIdNew parent folder id
itemIdItem id to be moved
Returns
Moved folder

◆ MoveMessage()

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::MoveMessage ( System::String  newParentId,
System::String  itemId 
)
pure virtual

Move a message to another mailfolder.

Parameters
newParentIdNew parent folder id
itemIdItem id to be moved
Returns
Moved folder

◆ Send() [1/4]

virtual void Aspose::Email::Clients::Graph::IGraphClient::Send ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage message)
pure virtual

Sends email message

Parameters
messageMapi message to send

◆ Send() [2/4]

virtual void Aspose::Email::Clients::Graph::IGraphClient::Send ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage message,
bool  saveToSentItems 
)
pure virtual

Sends email message

Parameters
messageMapi message to send
saveToSentItemsIndicates whether to save the message in Sent Items.

◆ Send() [3/4]

virtual void Aspose::Email::Clients::Graph::IGraphClient::Send ( System::SharedPtr< MailMessage message)
pure virtual

Sends email message

Parameters
messageMailMessageAspose::Email::MailMessage to send

◆ Send() [4/4]

virtual void Aspose::Email::Clients::Graph::IGraphClient::Send ( System::String  itemId)
pure virtual

Send a message in the draft folder. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. The message is then saved in the Sent Items folder.

Parameters
itemIdItem id of the draft message

◆ SendAsMime()

virtual void Aspose::Email::Clients::Graph::IGraphClient::SendAsMime ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage message)
pure virtual

Sends email message using MIME format

Parameters
messageMapi message to send

◆ set_MultipleServicesTokenProvider()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_MultipleServicesTokenProvider ( System::SharedPtr< IMultipleServicesTokenProvider value)
pure virtual

Sets an object allows to retrieve OAuth access token.

◆ set_Proxy()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_Proxy ( System::SharedPtr< System::Net::IWebProxy >  value)
pure virtual

Sets data to proxy access to Exchange server.

◆ set_Resource()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_Resource ( ResourceType  value)
pure virtual

Sets resource type.

◆ set_ResourceId()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_ResourceId ( System::String  value)
pure virtual

Sets resource id. For instance for users it may be user principal name (UPN) or user id

◆ set_TenantId()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_TenantId ( System::String  value)
pure virtual

Sets tenant identifier

◆ set_Timeout()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_Timeout ( int32_t  value)
pure virtual

Sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

◆ set_TokenProvider()

virtual void Aspose::Email::Clients::Graph::IGraphClient::set_TokenProvider ( System::SharedPtr< ITokenProvider value)
pure virtual

Sets an object allows to retrieve OAuth access token.

◆ SetRead()

virtual void Aspose::Email::Clients::Graph::IGraphClient::SetRead ( System::String  itemId)
pure virtual

Mark message as read

Parameters
itemIdItem id to mark read

◆ UpdateCategory()

virtual System::SharedPtr<OutlookCategory> Aspose::Email::Clients::Graph::IGraphClient::UpdateCategory ( System::SharedPtr< OutlookCategory category)
pure virtual

Updates pre-set color constant for specified category

Parameters
categoryCategory to update
Returns
Category by which a user can group Outlook items such as messages and events

◆ UpdateFolder()

virtual System::SharedPtr<FolderInfo> Aspose::Email::Clients::Graph::IGraphClient::UpdateFolder ( System::SharedPtr< FolderInfo folderInfo)
pure virtual

Updates folder.

Parameters
folderInfoFolder to update
Returns
Returns updated folder

◆ UpdateMessage() [1/4]

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::UpdateMessage ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage message)
pure virtual

Updates message

Parameters
messageMapi message to be updated
Returns
Updated message

◆ UpdateMessage() [2/4]

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Graph::IGraphClient::UpdateMessage ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage message,
System::SharedPtr< UpdateSettings updateSettings 
)
pure virtual

Updates message

Parameters
messageMapi message to be updated
updateSettingsUpdate settings
Returns
Updated message

◆ UpdateMessage() [3/4]

virtual System::SharedPtr<MailMessage> Aspose::Email::Clients::Graph::IGraphClient::UpdateMessage ( System::SharedPtr< MailMessage message)
pure virtual

Updates message

Parameters
messageMailMessage to be updated
Returns
Updated message

◆ UpdateMessage() [4/4]

virtual System::SharedPtr<MailMessage> Aspose::Email::Clients::Graph::IGraphClient::UpdateMessage ( System::SharedPtr< MailMessage message,
System::SharedPtr< UpdateSettings updateSettings 
)
pure virtual

Updates message

Parameters
messageMailMessage to be updated
updateSettingsUpdate settings
Returns
Updated message

◆ UpdateOverride()

virtual System::SharedPtr<ClassificationOverride> Aspose::Email::Clients::Graph::IGraphClient::UpdateOverride ( System::SharedPtr< ClassificationOverride classificationOverride)
pure virtual

Change the classifyAs field of an override as specified. You cannot use this method to change any other fields in an ClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use CreateOrUpdateOverride to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one with the new SMTP address is the only way to "update" the override for this sender. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.ReadWrite Delegated (personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite

Parameters
classificationOverrideClassification override to update
Returns

◆ UpdateRule()

virtual System::SharedPtr<Aspose::Email::Clients::Exchange::InboxRule> Aspose::Email::Clients::Graph::IGraphClient::UpdateRule ( System::SharedPtr< Aspose::Email::Clients::Exchange::InboxRule rule)
pure virtual

Change writable properties on a messageRule object and save the changes. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite

Parameters
ruleRule to update
Returns
Updated rule