UsePassive Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the behavior of a client application's data transfer process.

Namespace:  System.Net
Assembly:  System.Ftp (in System.Ftp.dll)

'Declaration
Public Property UsePassive As Boolean

Property Value

Type: System..::..Boolean
false if the client application's data transfer process listens for a connection on the data port; otherwise, true if the client should initiate a connection on the data port. The default value is true.

Setting the UsePassive property to true sends the "PASV" command to the server. This command requests the server to listen on a data port and to wait for a connection rather than initiate one upon receipt of a transfer command.

Show: