Device.GetFileDeployer メソッド

更新 : 2007 年 11 月

デバイスとデスクトップ コンピュータ間でファイルをコピーするために使用される FileDeployer オブジェクトを返します。

名前空間 :  Microsoft.SmartDevice.Connectivity
アセンブリ :  Microsoft.SmartDevice.Connectivity (Microsoft.SmartDevice.Connectivity.dll 内)

構文

'宣言
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

戻り値

型 : Microsoft.SmartDevice.Connectivity.FileDeployer

FileDeployer 型のオブジェクト。

例外

例外 条件
DeviceNotConnectedException

デバイスが接続されていません。

解説

デバイスは接続されている必要があります。

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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

Device クラス

Device メンバ

Microsoft.SmartDevice.Connectivity 名前空間