Share 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
'Usage
Dim instance As FtpClientConnection
Dim returnValue As String

returnValue = instance.GetWorkingDirectory()
public string GetWorkingDirectory()
public:
String^ GetWorkingDirectory()
member GetWorkingDirectory : unit -> string 
public function GetWorkingDirectory() : String

Return Value

Type: System.String
A String that contains the current working directory.

Examples

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()