GmailClientRecycleMessageAsync Method
Asynchronously sends the specified message to the Trash folder.
Namespace: DevCase.ThirdParty.Google.GmailAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<bool> RecycleMessageAsync(
Message msg
)
Public Function RecycleMessageAsync (
msg As Message
) As Task(Of Boolean)
Dim instance As GmailClient
Dim msg As Message
Dim returnValue As Task(Of Boolean)
returnValue = instance.RecycleMessageAsync(msg)
public:
Task<bool>^ RecycleMessageAsync(
Message^ msg
)
member RecycleMessageAsync :
msg : Message -> Task<bool>
No code example is currently available or this language may not be supported.
- msg Message
-
The source Message to recycle.
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 client As New GmailClient("C:\GoogleSecrets.json", "yourmail@gmail.com", GmailScopes.ReadOnly Or GmailScopes.Modify Or GmailScopes.Send)
Dim credential As UserCredential = Await client.AuthorizeAsync()
Dim folder As Google.Apis.Gmail.v1.Data.Label = Await client.GetFolderAsyncByKnownId(GmailFolderIds.Inbox)
Dim messages As List(Of Google.Apis.Gmail.v1.Data.Message) = Await client.GetMessagesAsync(folder)
Dim msg As Google.Apis.Gmail.v1.Data.Message = messages(0)
Dim success As Boolean = Await client.RecycleMessageAsync(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
|
|