Partilhar via


FtpClientConnection.GetWorkingDirectory Method

Gets the current working directory on the File Transfer Protocol (FTP) server.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntax

'Declaration
Public Function GetWorkingDirectory As String
public string GetWorkingDirectory ()
public:
String^ GetWorkingDirectory ()
public String GetWorkingDirectory ()
public function GetWorkingDirectory () : String

Return Value

A String that contains the current working directory.

Example

The following code example shows how to call the GetWorkingDirectory method and store it in a String variable.

string directoryName = ftpClientConnection.GetWorkingDirectory(); 
Dim directoryName As String =  ftpClientConnection.GetWorkingDirectory()

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

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