Table of Contents

Class UsersResource.SettingsResource.FiltersResource

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

The "filters" collection of methods.

public class UsersResource.SettingsResource.FiltersResource
Inheritance
UsersResource.SettingsResource.FiltersResource
Inherited Members

Constructors

FiltersResource(IClientService)

Constructs a new resource.

public FiltersResource(IClientService service)

Parameters

service IClientService

Methods

Create(Filter, string)

Creates a filter. Note: you can only create a maximum of 1,000 filters.

public virtual UsersResource.SettingsResource.FiltersResource.CreateRequest Create(Filter body, string userId)

Parameters

body Filter

The body of the request.

userId string

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

Returns

UsersResource.SettingsResource.FiltersResource.CreateRequest

Delete(string, string)

Deletes a filter.

public virtual UsersResource.SettingsResource.FiltersResource.DeleteRequest Delete(string userId, string id)

Parameters

userId string

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

id string

The ID of the filter to be deleted.

Returns

UsersResource.SettingsResource.FiltersResource.DeleteRequest

Get(string, string)

Gets a filter.

public virtual UsersResource.SettingsResource.FiltersResource.GetRequest Get(string userId, string id)

Parameters

userId string

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

id string

The ID of the filter to be fetched.

Returns

UsersResource.SettingsResource.FiltersResource.GetRequest

List(string)

Lists the message filters of a Gmail user.

public virtual UsersResource.SettingsResource.FiltersResource.ListRequest List(string userId)

Parameters

userId string

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

Returns

UsersResource.SettingsResource.FiltersResource.ListRequest