Partager via


FtpClientConnection.GetListing Method

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

Espace de noms: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntaxe

'Déclaration
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 ne prend pas en charge le passage d'arguments de type valeur par référence.

Paramètres

  • folderNames
    An array containing the folders in the current folder.
  • fileNames
    An array containing the files in the current folder.

Notes

Both folderNames and fileNames parameters are out parameters.

Exemple

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)

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

FtpClientConnection Class
FtpClientConnection Members
Microsoft.SqlServer.Dts.Runtime Namespace