Sdílet prostřednictvím


DkmFileTransferStream.Create Method

Definition

Creates a new file transfer stream object which is used to represent a file which is being streamed over the network. Note that the file is not immediately opened when the object is created. The caller should close the file transfer object when done. The caller is responsible for closing the created object after they are done.

public:
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmFileTransferStream ^ Create(Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ Connection, System::String ^ RemoteFilePath, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmFileTransferStream Create (Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection Connection, string RemoteFilePath, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmFileTransferStream Create (Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection Connection, string RemoteFilePath, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection * string * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmFileTransferStream
Public Shared Function Create (Connection As DkmTransportConnection, RemoteFilePath As String, DataItem As DkmDataItem) As DkmFileTransferStream

Parameters

Connection
DkmTransportConnection

[In] Transport connection over which the file will be transferred.

RemoteFilePath
String

[In] Path to the file being transferred. Environment variables will be expanded (ex: %TMP%\deploy.txt). The path must be a full path to the file.

DataItem
DkmDataItem

[In,Optional] Data object to add to the new DkmFileTransferStream instance. Pass 'null' in the case that the caller doesn't need to add a data item.

Returns

[Out] Result of this method call.

Applies to