Method GetFileAsync
GetFileAsync(String)
Gets the data file at the url in the Source property
Declaration
public Task<string> GetFileAsync(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | Path to a directory or full file name. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task that represents the asynchronous get file operation. The value of the task result contains the full file path. |
Remarks
If filePath is a directory, the file name from the provided Source will be used.
If filePath is a full file path and the file already exists, the old file will be deleted and replaced with the new file from Source
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |