Class UsersResource.SettingsResource.FiltersResource
The "filters" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.SettingsResource.FiltersResource
Constructors
FiltersResource(IClientService)
Constructs a new resource.
Declaration
public FiltersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Filter, string)
Creates a filter. Note: you can only create a maximum of 1,000 filters.
Declaration
public virtual UsersResource.SettingsResource.FiltersResource.CreateRequest Create(Filter body, string userId)
Parameters
Type | Name | Description |
---|---|---|
Filter | body | The body of the request. |
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.FiltersResource.CreateRequest |
Delete(string, string)
Immediately and permanently deletes the specified filter.
Declaration
public virtual UsersResource.SettingsResource.FiltersResource.DeleteRequest Delete(string userId, string id)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | id | The ID of the filter to be deleted. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.FiltersResource.DeleteRequest |
Get(string, string)
Gets a filter.
Declaration
public virtual UsersResource.SettingsResource.FiltersResource.GetRequest Get(string userId, string id)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | id | The ID of the filter to be fetched. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.FiltersResource.GetRequest |
List(string)
Lists the message filters of a Gmail user.
Declaration
public virtual UsersResource.SettingsResource.FiltersResource.ListRequest List(string userId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.FiltersResource.ListRequest |