共用方式為


FtpClientConnection.GetListing Method

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

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public Sub GetListing ( _
    <OutAttribute> ByRef folderNames As String(), _
    <OutAttribute> ByRef fileNames As String() _
)
public void GetListing (
    out string[] folderNames,
    out string[] fileNames
)
public:
void GetListing (
    [OutAttribute] array<String^>^% folderNames, 
    [OutAttribute] array<String^>^% fileNames
)
public void GetListing (
    /** @attribute OutAttribute() */ /** @ref */ String[] folderNames, 
    /** @attribute OutAttribute() */ /** @ref */ String[] fileNames
)
JScript 不支援以傳址方式傳遞值類型的引數。

參數

  • folderNames
    An array containing the folders in the current folder.
  • fileNames
    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)

執行緒安全性

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