# GoogleSheetsImporter

Imports Google spreadsheets through either loss-minimizing Drive conversion or the native Sheets model.

Class 

`OfficeIMO.Excel.GoogleSheets`

**Namespace**

`OfficeIMO.Excel.GoogleSheets`

**Assembly**

`OfficeIMO.Excel.GoogleSheets`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[GoogleSheetsImporter.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsImporter.cs#L11)

**Implements**

`IGoogleSheetsImporter`

**Modifiers**

sealed

Imports Google spreadsheets through either loss-minimizing Drive conversion or the native Sheets model.

## Inheritance

- object
- GoogleSheetsImporter

Filter members 

Show inherited

## Constructors

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

## Methods

`public async Task<GoogleSheetsImportResult> ImportAsync(string spreadsheetId, GoogleWorkspaceSession session, GoogleSheetsImportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-importasync-string-officeimo-googleworkspace-googleworkspacesession-officeimo-excel-googlesheets-googlesheetsimportoptions-threading-cancellationtoken)

Loads a Google spreadsheet and returns a caller-owned Excel document with source metadata.

Parameters

**spreadsheetId string required**

**session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required**

**options OfficeIMO.Excel.GoogleSheets.GoogleSheetsImportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<GoogleSheetsImportResult>`

## 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?`

<!-- PowerForge markdown artifact sha256:06F6B4CE999C5F54A845E85983B95170A08942C477932A4F5C9E4055B21CCFF5 -->
