언어

FtpClientConnection.GetListing(String[], String[]) 메서드

정의

FTP 서버에서 지정된 폴더나 디렉터리 내 디렉터리와 디렉터리 이름을 나열합니다.

public:
 void GetListing([Runtime::InteropServices::Out] cli::array <System::String ^> ^ % folderNames, [Runtime::InteropServices::Out] cli::array <System::String ^> ^ % fileNames);
public void GetListing(out string[] folderNames, out string[] fileNames);
member this.GetListing : String[] * String[] -> unit
Public Sub GetListing (ByRef folderNames As String(), ByRef fileNames As String())

매개 변수

folderNames
String[]

현재 폴더 내 폴더들을 포함하는 배열입니다.

fileNames
String[]

현재 폴더에 있는 파일을 포함하는 배열입니다.

예제

다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 GetListing .

//Get all folders and files of the directory   
string[] folderNames;  
string[] fileNames;  
ftpClientConnection.GetListing(out folders, out files);   
'Get all folders and files of the directory   
Dim folderNames() As String  
Dim fileNames() As String  
ftpClientConnection.GetListing(folders, files)  

설명

두 가지 모두 folderNamesfileNames 매개변수입니다 out .

적용 대상