다음을 통해 공유


FtpClientConnection.ReceiveFiles Method

Receives files from the File Transfer Protocol (FTP) server.

네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

구문

‘선언
Public Sub ReceiveFiles ( _
    remoteFileNames As String(), _
    localPath As String, _
    overwrite As Boolean, _
    isTransferAscii As Boolean _
)
public void ReceiveFiles (
    string[] remoteFileNames,
    string localPath,
    bool overwrite,
    bool isTransferAscii
)
public:
void ReceiveFiles (
    array<String^>^ remoteFileNames, 
    String^ localPath, 
    bool overwrite, 
    bool isTransferAscii
)
public void ReceiveFiles (
    String[] remoteFileNames, 
    String localPath, 
    boolean overwrite, 
    boolean isTransferAscii
)
public function ReceiveFiles (
    remoteFileNames : String[], 
    localPath : String, 
    overwrite : boolean, 
    isTransferAscii : boolean
)

매개 변수

  • remoteFileNames
    The files on the FTP server to receive.
  • localPath
    The local path where you want to receive the remote files.
  • overwrite
    Specifies whether to overwrite the files, if the files already exist on the local computer. A value of true indicates that the task will overwrite existing files.
  • isTransferAscii
    Specifies if files should be received in ASCII mode. A value of true indicates that the files should be received in ASCII mode.

주의

Wild-card characters are allowed. For example, receiving from a remoteFileNames of /MyFolder/MyFiles*.* will retrieve from all files in the MyFolder directory that start with the characters MyFiles.

The following code example shows how to use the ReceiveFiles method.

String [] remoteFileNames = {"myTestFile", "myFTPFile"};
String localPath = "Program Files";
myftpClientConn.ReceiveFiles(remoteFileNames, localPath, true, true); 
Dim remoteFileNames() As String = {"myTestFile", "myFTPFile"}
Dim localPath As String =  "Program Files" 
myftpClientConn.ReceiveFiles(remoteFileNames, localPath, True, True)

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

FtpClientConnection Class
FtpClientConnection Members
Microsoft.SqlServer.Dts.Runtime Namespace