Request.DownloadFile Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.MetaProvider.PowerShell
Assembly: Microsoft.OneGet.MetaProvider.PowerShell (in Microsoft.OneGet.MetaProvider.PowerShell.dll)

Usage

'Usage
Dim instance As Request
Dim remoteLocation As Uri
Dim localFilename As String
Dim requestImpl As MarshalByRefObject

instance.DownloadFile(remoteLocation, localFilename, requestImpl)

Syntax

'Declaration
Public MustOverride Sub DownloadFile ( _
    remoteLocation As Uri, _
    localFilename As String, _
    requestImpl As MarshalByRefObject _
)
public abstract void DownloadFile (
    Uri remoteLocation,
    string localFilename,
    MarshalByRefObject requestImpl
)
public:
virtual void DownloadFile (
    Uri^ remoteLocation, 
    String^ localFilename, 
    MarshalByRefObject^ requestImpl
) abstract
public abstract void DownloadFile (
    Uri remoteLocation, 
    String localFilename, 
    MarshalByRefObject requestImpl
)
public abstract function DownloadFile (
    remoteLocation : Uri, 
    localFilename : String, 
    requestImpl : MarshalByRefObject
)

Parameters

  • remoteLocation
  • localFilename
  • requestImpl

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

Request Class
Request Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace