Udostępnij za pośrednictwem


DkmTransportConnection.DeployFile(String, String, Boolean) Method

Definition

Deploy a file to the target computer. Note that this will copy the file content and last write time, but not attributes.

Location constraint: API must be called from an IDE component (component level > 100,000).

public:
 void DeployFile(System::String ^ LocalFilePath, System::String ^ RemoteFilePath, bool OverwriteExisting);
public:
 void DeployFile(Platform::String ^ LocalFilePath, Platform::String ^ RemoteFilePath, bool OverwriteExisting);
void DeployFile(std::wstring const & LocalFilePath, std::wstring const & RemoteFilePath, bool OverwriteExisting);
public void DeployFile (string LocalFilePath, string RemoteFilePath, bool OverwriteExisting);
member this.DeployFile : string * string * bool -> unit
Public Sub DeployFile (LocalFilePath As String, RemoteFilePath As String, OverwriteExisting As Boolean)

Parameters

LocalFilePath
String

[In] Path to the local file which will be copied. The path must be a full path.

RemoteFilePath
String

[In] Path to the remote file that will be written. Environment variables will be expanded (ex: %TMP%\deploy.txt). This must be a full path. If the directory of this file does not exist, the debugger will attempt to create it.

OverwriteExisting
Boolean

[In] true if the debugger should attempt to overwrite any existing file. This will fail if the existing file is read-only.

Applies to