FtpClientConnection.GetListing Method
Lists the names of directories and files in the specified folder or directory from the FTP server.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Sintaxis
'Declaración
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 no permite pasar argumentos de valor para referencia.
Parámetros
- folderNames
An array containing the folders in the current folder.
- fileNames
An array containing the files in the current folder.
Notas
Both folderNames and fileNames parameters are out parameters.
Ejemplo
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)
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
FtpClientConnection Class
FtpClientConnection Members
Microsoft.SqlServer.Dts.Runtime Namespace