ComponentOne Basic Library for UWP
GetWebResourceAsync Method

C1.UWP Assembly > C1.Xaml Namespace > ResourceLoader Class : GetWebResourceAsync Method
The URI of the file.
The folder to save the file to.
The file name to save the file as.
Downloads a file from the specified address and returns the file.
Syntax
'Declaration
 
Public Shared Function GetWebResourceAsync( _
   ByVal fileUri As System.Uri, _
   ByVal folder As Windows.Storage.StorageFolder, _
   Optional ByVal fileName As System.String _
) As System.Threading.Tasks.Task(Of StorageFile)
public static System.Threading.Tasks.Task<StorageFile> GetWebResourceAsync( 
   System.Uri fileUri,
   Windows.Storage.StorageFolder folder,
   System.string fileName
)

Parameters

fileUri
The URI of the file.
folder
The folder to save the file to.
fileName
The file name to save the file as.
Remarks
If no file name is given - the method will try to find the suggested file name in the HTTP response based on the Content-Disposition HTTP header.
See Also

Reference

ResourceLoader Class
ResourceLoader Members