# GoogleSheetsReplaceOptions

Safety contract for destructive replacement of an existing Google spreadsheet.

Class 

`OfficeIMO.Excel.GoogleSheets`

**Namespace**

`OfficeIMO.Excel.GoogleSheets`

**Assembly**

`OfficeIMO.Excel.GoogleSheets`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[GoogleSheetsSaveOptions.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsSaveOptions.cs#L148)

**Modifiers**

sealed

Safety contract for destructive replacement of an existing Google spreadsheet.

## Inheritance

- object
- GoogleSheetsReplaceOptions

## 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.

### Returned or exposed by 1

- Property [GoogleSheetsSaveOptions.Replace](/api/excel-google-sheets/officeimo-excel-googlesheets-googlesheetssaveoptions/#property-replace)

Filter members 

Show inherited

## Constructors

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

## 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 GoogleSheetsReplaceConflictMode ConflictMode { get; set; }` [#](#property-conflictmode)

[GoogleSheetsSaveOptions.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsSaveOptions.cs#L148)

Gets or sets the conflict behavior; defaults to checking a matching Drive version before mutation.

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

[GoogleSheetsSaveOptions.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsSaveOptions.cs#L150)

Gets or sets the Drive version observed before replacement.

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