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