OutlookMailClientDeleteMessageAsync Method
Asynchronously permanentlly deletes the specified message.
Namespace: DevCase.ThirdParty.MicrosoftLiveAssembly: DevCase.net48.ThirdParty.MicrosoftLive (in DevCase.net48.ThirdParty.MicrosoftLive.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<bool> DeleteMessageAsync(
IMessage msg
)
Public Function DeleteMessageAsync (
msg As IMessage
) As Task(Of Boolean)
Dim instance As OutlookMailClient
Dim msg As IMessage
Dim returnValue As Task(Of Boolean)
returnValue = instance.DeleteMessageAsync(msg)
public:
Task<bool>^ DeleteMessageAsync(
IMessage^ msg
)
member DeleteMessageAsync :
msg : IMessage -> Task<bool>
No code example is currently available or this language may not be supported.
- msg IMessage
-
The source IMessage to delete.
TaskBoolean if the operation succeeds, otherwise,
.
This is a code example.
No code example is currently available or this language may not be supported.
Dim outlookClient As New OutlookMailClient("YOUR CLIENT ID", OutlookMailScopes.ReadWrite Or OutlookMailScopes.Send)
Await outlookClient.AuthorizeAsync()
Dim folder As IMailFolder = Await outlookClient.GetFolderAsyncByKnownId(OutlookMailFolderIds.Inbox)
Dim messages As IPagedCollection(Of IMessage) = Await outlookClient.GetMessagesAsync(folder)
Dim msg As IMessage = messages.CurrentPage(0)
Dim success As Boolean = Await outlookClient.DeleteMessageAsync(msg)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
InvalidOperationException
|
|