Class FileDownload
Class representing a file download response. See Tableu API Reference for data sources and workbooks documentation.
Namespace: Tableau.Migration.Api.Models
Assembly: Tableau.Migration.dll
Syntax
public record FileDownload : IAsyncDisposable, IEquatable<FileDownload>
Constructors
FileDownload(string?, Stream, bool?)
Class representing a file download response. See Tableu API Reference for data sources and workbooks documentation.
Declaration
public FileDownload(string? Filename, Stream Content, bool? IsZipFile)
Parameters
Type | Name | Description |
---|---|---|
string | Filename | The server provided filename of the file to download. |
Stream | Content | The stream with the file content to download from. |
bool? | IsZipFile | Whether or not the file is in a ZIP format (e.g. tdsx/twbx), or null if the zip file status could not be determined. |
Properties
Content
The stream with the file content to download from.
Declaration
public Stream Content { get; init; }
Property Value
Type | Description |
---|---|
Stream |
Filename
The server provided filename of the file to download.
Declaration
public string? Filename { get; init; }
Property Value
Type | Description |
---|---|
string |
IsZipFile
Whether or not the file is in a ZIP format (e.g. tdsx/twbx), or null if the zip file status could not be determined.
Declaration
public bool? IsZipFile { get; init; }
Property Value
Type | Description |
---|---|
bool? |
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
Type | Description |
---|---|
ValueTask | A task that represents the asynchronous dispose operation. |