GmailClientDeleteMessage Method
Permanentlly deletes the specified message.
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 bool DeleteMessage(
Message msg
)
Public Function DeleteMessage (
msg As Message
) As Boolean
Dim instance As GmailClient
Dim msg As Message
Dim returnValue As Boolean
returnValue = instance.DeleteMessage(msg)
public:
bool DeleteMessage(
Message^ msg
)
member DeleteMessage :
msg : Message -> bool
No code example is currently available or this language may not be supported.
- msg Message
-
The source Message to delete.
Boolean 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 = client.Authorize()
Dim folder As Google.Apis.Gmail.v1.Data.Label = client.GetFolderByKnownId(GmailFolderIds.Inbox)
Dim messages As List(Of Google.Apis.Gmail.v1.Data.Message) = client.GetMessages(folder)
Dim msg As Google.Apis.Gmail.v1.Data.Message = messages(0)
Dim success As Boolean = client.DeleteMessage(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
|
|