Device.GetFileDeployer (Método)

Actualización: noviembre 2007

Devuelve un objeto FileDeployer que se utiliza para copiar archivos entre el dispositivo y el equipo de escritorio.

Espacio de nombres:  Microsoft.SmartDevice.Connectivity
Ensamblado:  Microsoft.SmartDevice.Connectivity (en Microsoft.SmartDevice.Connectivity.dll)

Sintaxis

Public Function GetFileDeployer As FileDeployer

Dim instance As Device
Dim returnValue As FileDeployer

returnValue = instance.GetFileDeployer()
public FileDeployer GetFileDeployer()
public:
FileDeployer^ GetFileDeployer()
public function GetFileDeployer() : FileDeployer

Valor devuelto

Tipo: Microsoft.SmartDevice.Connectivity.FileDeployer

Objeto del tipo FileDeployer.

Excepciones

Excepción Condición
DeviceNotConnectedException

El dispositivo no está conectado.

Comentarios

El dispositivo debe estar conectado.

Ejemplos

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");

Permisos

Vea también

Referencia

Device (Clase)

Device (Miembros)

Microsoft.SmartDevice.Connectivity (Espacio de nombres)