Method 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 command to send to the FTP server.

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

public override string Method { get; set; }

Property Value

Type: System..::..String
A String value that contains the FTP command to send to the server.

The Method property determines which command is sent to the server. You set the Method by using the strings defined in the public field members of the WebRequestMethods..::..Ftp class. Note that the strings defined in the WebRequestMethods..::..Ftp class are the only supported options for the Method property. Setting the Method property to any other value will result in an ArgumentException exception.