# GoogleDriveTransferProgress

Confirmed byte progress for a Drive upload, download, or export.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleDriveClient.Media.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L27)

**Modifiers**

sealed

Confirmed byte progress for a Drive upload, download, or export.

## Inheritance

- object
- GoogleDriveTransferProgress

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

- Property [GoogleDriveUploadOptions.Progress](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveuploadoptions/#property-progress)

### Accepted by parameters 2

- Method [GoogleDriveClient.DownloadAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-downloadasync-string-iprogress-officeimo-googleworkspace-drive-googledrivetransferprogress-officeimo-googleworkspace-translationreport-threading-cancellationtoken-nullable-system-int64) parameter `progress`
- Method [GoogleDriveClient.ExportAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-exportasync-string-string-iprogress-officeimo-googleworkspace-drive-googledrivetransferprogress-officeimo-googleworkspace-translationreport-threading-cancellationtoken-nullable-system-int64) parameter `progress`

Filter members 

Show inherited

## Constructors

`public GoogleDriveTransferProgress(long bytesTransferred, long? totalBytes)` [#](#constructor-ctor-int64-nullable-system-int64)

[GoogleDriveClient.Media.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L27)

Creates a progress snapshot.

Parameters

**bytesTransferred long required**

**totalBytes long? required**

## 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 long BytesTransferred { get; }` [#](#property-bytestransferred)

[GoogleDriveClient.Media.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L33)

Gets the byte count confirmed as transferred.

`public long? TotalBytes { get; }` [#](#property-totalbytes)

[GoogleDriveClient.Media.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L35)

Gets the expected total byte count, when known.

`public double? Percentage { get; }` [#](#property-percentage)

[GoogleDriveClient.Media.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L38)

Gets the raw transferred-to-total ratio as a percentage, or null when total length is unknown or nonpositive.

<!-- PowerForge markdown artifact sha256:626E9A4DBF3C8E9DC7483A6CF566042D331C5D13654654DD015FF039F96CCA6E -->
