PackageUtilities.CopyUrlToLocalAsync(Uri, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Downloads a file from a given URL to a local file path.
public static System.Threading.Tasks.Task CopyUrlToLocalAsync (Uri uri, string local, System.Threading.CancellationToken cancellationToken);
static member CopyUrlToLocalAsync : Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CopyUrlToLocalAsync (uri As Uri, local As String, cancellationToken As CancellationToken) As Task
Parameters
- uri
- Uri
- local
- String
- cancellationToken
- CancellationToken