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