# GoogleSheetsAddProtectedRangeRequest

Adds a protected sheet/range to the target spreadsheet.

Class 

`OfficeIMO.Excel.GoogleSheets`

**Namespace**

`OfficeIMO.Excel.GoogleSheets`

**Assembly**

`OfficeIMO.Excel.GoogleSheets`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[GoogleSheetsRequest.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L129)

**Base**

`GoogleSheetsRequest`

**Modifiers**

sealed

Adds a protected sheet/range to the target spreadsheet.

## Inheritance

- [GoogleSheetsRequest](/api/excel-google-sheets/officeimo-excel-googlesheets-googlesheetsrequest/)
- GoogleSheetsAddProtectedRangeRequest

Filter members 

Show inherited

## Constructors

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

[GoogleSheetsRequest.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L129)

Creates a protected-range request.

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

[GoogleSheetsRequest.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L129)

Gets or sets the protected worksheet.

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

[GoogleSheetsRequest.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L131)

Gets or sets an optional range description.

`public bool WarningOnly { get; set; }` [#](#property-warningonly)

[GoogleSheetsRequest.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L133)

Gets or sets whether edits warn instead of being blocked.

`public bool DomainUsersCanEdit { get; set; }` [#](#property-domainuserscanedit)

[GoogleSheetsRequest.cs:135](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L135)

Gets or sets whether domain users may edit the range.

`public IReadOnlyList<string> EditorEmailAddresses { get; set; }` [#](#property-editoremailaddresses)

[GoogleSheetsRequest.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L137)

Gets or sets the permitted editor email addresses.

`public IReadOnlyList<string> UnprotectedA1Ranges { get; set; }` [#](#property-unprotecteda1ranges)

[GoogleSheetsRequest.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L139)

Gets or sets unprotected A1 ranges within the protected sheet.

## Inherited Properties

`public string Kind { get; }` [#](#property-kind)

[GoogleSheetsRequest.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsRequest.cs#L24)

Inherited from [GoogleSheetsRequest](/api/excel-google-sheets/officeimo-excel-googlesheets-googlesheetsrequest/)

<!-- PowerForge markdown artifact sha256:89A9C6B203F81DF04DAE7E943831F6BE1B1102CDF37D3325BDFEEDA608D848AD -->
