Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.