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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.