# GoogleDriveListOptions

Filtering, paging, projection, and corpus options for listing Drive files.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[GoogleDriveClient.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L46)

**Modifiers**

sealed

Filtering, paging, projection, and corpus options for listing Drive files.

## Inheritance

- object
- GoogleDriveListOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Manage Google Drive Files](/docs/google-workspace/drive/) Guide
  
  List, upload, download, copy, and share Google Drive files with the typed GoogleDriveClient from OfficeIMO.GoogleWorkspace.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [GoogleDriveClient.ListFilesAsync](/api/google-workspace/officeimo-googleworkspace-drive-googledriveclient/#method-listfilesasync-officeimo-googleworkspace-drive-googledrivelistoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public GoogleDriveListOptions()` [#](#constructor-ctor)

[GoogleDriveClient.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L46)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? Query { get; set; }` [#](#property-query)

[GoogleDriveClient.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L40)

Gets or sets the Drive query expression.

`public string? DriveId { get; set; }` [#](#property-driveid)

[GoogleDriveClient.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L42)

Gets or sets a shared-drive identifier to restrict the corpus.

`public string? PageToken { get; set; }` [#](#property-pagetoken)

[GoogleDriveClient.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L44)

Gets or sets the continuation token from a previous page.

`public int PageSize { get; set; }` [#](#property-pagesize)

[GoogleDriveClient.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L46)

Gets or sets the requested page size, clamped to 1 through 1000.

`public string Spaces { get; set; }` [#](#property-spaces)

[GoogleDriveClient.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L48)

Gets or sets a comma-separated list of spaces to search. The default is drive.

`public string? OrderBy { get; set; }` [#](#property-orderby)

[GoogleDriveClient.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L50)

Gets or sets the Drive API ordering expression.

`public string? Fields { get; set; }` [#](#property-fields)

[GoogleDriveClient.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L52)

Gets or sets the partial-response fields expression.

`public bool IncludeItemsFromAllDrives { get; set; }` [#](#property-includeitemsfromalldrives)

[GoogleDriveClient.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L54)

Gets or sets whether results may include items from shared drives.

<!-- PowerForge markdown artifact sha256:0A83A31ABD2F0D5011097DD277A5DCDBF87C875AB9A2430B1851403DF17153AA -->
