Share via


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)

Syntax

'Declaration
Public Property UsePassive As Boolean
public bool UsePassive { get; set; }
public:
property bool UsePassive {
    bool get ();
    void set (bool value);
}
member UsePassive : bool with get, set
function get UsePassive () : boolean
function set UsePassive (value : 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.

Remarks

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.

.NET Framework Security

See Also

Reference

FtpWebRequest Class

System.Net Namespace