# GoogleDriveFile

Metadata and capabilities returned for a Google Drive file.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Metadata and capabilities returned for a Google Drive file.

## Inheritance

- object
- GoogleDriveFile

## 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.Drive.
- [Work with Google Shared Drives](/docs/google-workspace/shared-drives/) Guide
  
  Point exports at a shared drive and folder, check that the folder belongs to that drive, and track changes per shared drive.

## Usage

Explore 11 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.

### Returned or exposed by 11

- Property [GoogleDriveChange.File](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledrivechange/#property-file)
- Method [GoogleDriveClient.CopyFileAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-copyfileasync-string-string-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.CreateFolderAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-createfolderasync-string-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.GetFileAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-getfileasync-string-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.MoveFileAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-movefileasync-string-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.ResolveFolderAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-resolvefolderasync-string-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.UploadMultipartAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadmultipartasync-byte-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveClient.UploadResumableAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadresumableasync-byte-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Property [GoogleDriveFileList.Files](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledrivefilelist/#property-files)
- Property [GoogleDriveResumableUploadResult.File](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveresumableuploadresult/#property-file)
- Property [GoogleDriveTemporaryContentLease.File](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledrivetemporarycontentlease/#property-file)

Filter members 

Show inherited

## Constructors

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

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

## 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? Id { get; set; }` [#](#property-id)

[GoogleDriveModels.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L26)

`JsonPropertyName("id")`

Gets or sets the Drive file identifier.

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

[GoogleDriveModels.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L30)

`JsonPropertyName("name")`

Gets or sets the display name.

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

[GoogleDriveModels.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L34)

`JsonPropertyName("mimeType")`

Gets or sets the Drive MIME type.

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

[GoogleDriveModels.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L38)

`JsonPropertyName("driveId")`

Gets or sets the containing shared-drive identifier.

`public List<string> Parents { get; set; }` [#](#property-parents)

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

`JsonPropertyName("parents")`

Gets or sets parent-folder identifiers.

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

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

`JsonPropertyName("webViewLink")`

Gets or sets the browser URL for viewing the file.

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

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

`JsonPropertyName("webContentLink")`

Gets or sets the browser URL for downloading binary content.

`public DateTimeOffset? ModifiedTime { get; set; }` [#](#property-modifiedtime)

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

`JsonPropertyName("modifiedTime")`

Gets or sets the most recent modification time.

`public DateTimeOffset? CreatedTime { get; set; }` [#](#property-createdtime)

[GoogleDriveModels.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L58)

`JsonPropertyName("createdTime")`

Gets or sets the creation time.

`public long? Version { get; set; }` [#](#property-version)

[GoogleDriveModels.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L63)

`JsonPropertyName("version")` `JsonNumberHandling(1)`

Gets or sets the monotonically increasing Drive file version.

`public long? Size { get; set; }` [#](#property-size)

[GoogleDriveModels.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L68)

`JsonPropertyName("size")` `JsonNumberHandling(1)`

Gets or sets the binary content size in bytes, when applicable.

`public bool Trashed { get; set; }` [#](#property-trashed)

[GoogleDriveModels.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L72)

`JsonPropertyName("trashed")`

Gets or sets whether the file is in the trash.

`public GoogleDriveFileCapabilities? Capabilities { get; set; }` [#](#property-capabilities)

[GoogleDriveModels.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L76)

`JsonPropertyName("capabilities")`

Gets or sets actions permitted for the authenticated caller.

<!-- PowerForge markdown artifact sha256:93635F4265CD97727F28628BBC6695A2AF112985B410E8CEA6C28F11790424F0 -->
