Поделиться через


Метод FtpClientConnection.GetListing

Lists the names of directories and files in the specified folder or directory from the FTP server.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Sub GetListing ( _
    <OutAttribute> ByRef folderNames As String(), _
    <OutAttribute> ByRef fileNames As String() _
)
'Применение
Dim instance As FtpClientConnection 
Dim folderNames As String()
Dim fileNames As String()

instance.GetListing(folderNames, fileNames)
public void GetListing(
    out string[] folderNames,
    out string[] fileNames
)
public:
void GetListing(
    [OutAttribute] array<String^>^% folderNames, 
    [OutAttribute] array<String^>^% fileNames
)
member GetListing : 
        folderNames:string[] byref * 
        fileNames:string[] byref -> unit
public function GetListing(
    folderNames : String[], 
    fileNames : String[]
)

Параметры

  • folderNames
    Тип: array<System.String[]%
    An array containing the folders in the current folder.
  • fileNames
    Тип: array<System.String[]%
    An array containing the files in the current folder.

Замечания

Both folderNames and fileNames parameters are out parameters.

Примеры

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

//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)

См. также

Справочник

FtpClientConnection Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime