# GoogleDrivePermissionCreateOptions

Grantee, role, discovery, and notification settings for creating a Drive permission.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleDriveClient.Collaboration.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L7)

**Modifiers**

sealed

Grantee, role, discovery, and notification settings for creating a Drive permission.

## Inheritance

- object
- GoogleDrivePermissionCreateOptions

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

### Accepted by parameters 1

- Method [GoogleDriveClient.CreatePermissionAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-createpermissionasync-string-officeimo-googleworkspace-drive-googledrivepermissioncreateoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[GoogleDriveClient.Collaboration.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L7)

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

[GoogleDriveClient.Collaboration.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L7)

Gets or sets the grantee type. The default is user.

`public string Role { get; set; }` [#](#property-role)

[GoogleDriveClient.Collaboration.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L9)

Gets or sets the granted role. The default is reader.

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

[GoogleDriveClient.Collaboration.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L11)

Gets or sets the user or group email address.

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

[GoogleDriveClient.Collaboration.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L13)

Gets or sets the domain for a domain permission.

`public bool? AllowFileDiscovery { get; set; }` [#](#property-allowfilediscovery)

[GoogleDriveClient.Collaboration.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L15)

Gets or sets whether an anyone or domain permission makes the file discoverable.

`public bool SendNotificationEmail { get; set; }` [#](#property-sendnotificationemail)

[GoogleDriveClient.Collaboration.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L17)

Gets or sets whether the request asks Google to email an applicable grantee. The default is true.

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

[GoogleDriveClient.Collaboration.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Collaboration.cs#L19)

Gets or sets an optional message requested for an applicable notification email.

<!-- PowerForge markdown artifact sha256:20DC407AD4067E055883BAB750999DA44570832E427EA623CAA8227D9C30EF8A -->
