Table of Contents

Class UsersResource.MessagesResource.InsertRequest

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

public class UsersResource.MessagesResource.InsertRequest : GmailBaseServiceRequest<Message>
Inheritance
UsersResource.MessagesResource.InsertRequest
Inherited Members

Constructors

InsertRequest(IClientService, Message, string)

Constructs a new Insert request.

public InsertRequest(IClientService service, Message body, string userId)

Parameters

service IClientService
body Message
userId string

Properties

Deleted

Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.

public virtual bool? Deleted { get; set; }

Property Value

bool?

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

InternalDateSource

Source for Gmail's internal date of the message.

public virtual UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum? InternalDateSource { get; set; }

Property Value

UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum?

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

UserId

The user's email address. The special value me can be used to indicate the authenticated user.

public virtual string UserId { get; }

Property Value

string

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Insert parameter list.

protected override void InitParameters()