# GoogleDriveFileLocation

Describes the Drive target location for created or updated files.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceTypes.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L126)

**Modifiers**

sealed

Describes the Drive target location for created or updated files.

## Inheritance

- object
- GoogleDriveFileLocation

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Export and Import Google Docs](/docs/google-workspace/docs/) Guide
  
  Plan a Word-to-Google-Docs export offline, create a Google Doc from a WordDocument, import a Google Doc, and replace an existing one safely.
- [Export and Import Google Sheets](/docs/google-workspace/sheets/) Guide
  
  Plan an Excel-to-Google-Sheets export offline, create a spreadsheet from an ExcelDocument, import a Google Sheet, and replace an existing one safely.
- [Export and Import Google Slides](/docs/google-workspace/slides/) Guide
  
  Plan a PowerPoint-to-Google-Slides export, create a presentation from a PowerPointDocument, and import or replace Google Slides safely.
- [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 3 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 2

- Property [GoogleDriveFileReference.Location](/api/google-workspace/officeimo-googleworkspace-googledrivefilereference/#property-location)
- Method [GoogleWorkspaceSession.ResolveLocationDefaults](/api/google-workspace/officeimo-googleworkspace-googleworkspacesession/#method-resolvelocationdefaults-officeimo-googleworkspace-googledrivefilelocation)

### Accepted by parameters 1

- Method [GoogleWorkspaceSession.ResolveLocationDefaults](/api/google-workspace/officeimo-googleworkspace-googleworkspacesession/#method-resolvelocationdefaults-officeimo-googleworkspace-googledrivefilelocation) parameter `location`

Filter members 

Show inherited

## Constructors

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

[GoogleWorkspaceTypes.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L126)

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

[GoogleWorkspaceTypes.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L120)

Gets or sets the shared-drive identifier, or leaves it unspecified to use the session default and then My Drive when no default exists.

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

[GoogleWorkspaceTypes.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L122)

Gets or sets the parent folder identifier for newly created files.

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

[GoogleWorkspaceTypes.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L124)

Gets or sets the identifier of an existing file to update instead of creating one.

`public bool SharedDriveAware { get; set; }` [#](#property-shareddriveaware)

[GoogleWorkspaceTypes.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceTypes.cs#L126)

Gets or sets whether Drive requests include shared-drive support flags. The default is true.

<!-- PowerForge markdown artifact sha256:D8C2742EE0B87FB36FC7D20271FDC10C15CC32B42FEED90C0B8E7197A6CB61F9 -->
