Method GetDataAsync
GetDataAsync()
Asynchronously retrieves attachment's data.
Declaration
public Task<Stream> GetDataAsync()
Returns
| Type | Description |
|---|---|
| Task<Stream> | The attachment's data. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
Relevant samples
Edit feature attachments: Add, delete, and download attachments for features from a service.
GetDataAsync(CancellationToken)
Asynchronously retrieves attachment's data.
Declaration
public Task<Stream> GetDataAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | An optional CancellationToken that may be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<Stream> | The attachment's data. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 300.0 |
| .NET Windows | 200.5 - 300.0 |
| .NET Android | 200.5 - 300.0 |
| .NET iOS | 200.5 - 300.0 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |