GmailClientRecycleMessage Method
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 bool RecycleMessage(
Message msg
)
Public Function RecycleMessage (
msg As Message
) As Boolean
Dim instance As GmailClient
Dim msg As Message
Dim returnValue As Boolean
returnValue = instance.RecycleMessage(msg)
public:
bool RecycleMessage(
Message^ msg
)
member RecycleMessage :
msg : Message -> bool
No code example is currently available or this language may not be supported.
- msg Message
-
The source Message to recycle.
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.RecycleMessage(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
|
|