Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a FileDeployer object that is used to copy files between the device and desktop computer.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Function GetFileDeployer As FileDeployer
'Usage
Dim instance As Device
Dim returnValue As FileDeployer
returnValue = instance.GetFileDeployer()
public FileDeployer GetFileDeployer()
public:
FileDeployer^ GetFileDeployer()
public function GetFileDeployer() : FileDeployer
Return Value
Type: Microsoft.SmartDevice.Connectivity.FileDeployer
An object of type FileDeployer.
Exceptions
| Exception | Condition |
|---|---|
| DeviceNotConnectedException | The device is not connected. |
Remarks
The device must be connected.
Examples
Dim fd As FileDeployer = device.GetFileDeployer()
' Copy file from device to desktop.
fd.ReceiveFile("\\windows\\Alarm1.wav", ".\\Alarm1.wav")
' Copy file from desktop to device.
fd.SendFile(".\\Alarm1.wav", "\\Program Files\\Alarm1.wav")
FileDeployer fd = device.GetFileDeployer();
// Copy file from device to desktop.
fd.ReceiveFile("\\windows\\Alarm1.wav", ".\\Alarm1.wav");
// Copy file from desktop to device.
fd.SendFile(".\\Alarm1.wav", "\\Program Files\\Alarm1.wav");
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.