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");
권한
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.