Class UsersResource.MessagesResource.InsertRequest
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
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
InternalDateSource
Source for Gmail's internal date of the message.
public virtual UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum? InternalDateSource { get; set; }
Property Value
MethodName
Gets the method name.
public override string MethodName { get; }
Property Value
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
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
Methods
GetBody()
Returns the body of the request.
protected override object GetBody()
Returns
InitParameters()
Initializes Insert parameter list.
protected override void InitParameters()