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.
Inheritance
System.Object
UsersResource.MessagesResource.InsertRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class InsertRequest : GmailBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest
Constructors
InsertRequest(IClientService, Message, String)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, Message body, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Message | body | |
| System.String | userId |
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.
Declaration
[RequestParameter("deleted", RequestParameterType.Query)]
public virtual bool? Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.Message>.HttpMethod
InternalDateSource
Source for Gmail's internal date of the message.
Declaration
[RequestParameter("internalDateSource", RequestParameterType.Query)]
public virtual UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum? InternalDateSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.Message>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.Message>.RestPath
UserId
The user's email address. The special value me can be used to indicate the authenticated user.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.Message>.GetBody()
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Gmail.v1.GmailBaseServiceRequest<Google.Apis.Gmail.v1.Data.Message>.InitParameters()