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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |