Share via


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)

Syntax

'Declaration
Public Overrides Property Method As String
public override string Method { get; set; }
public:
virtual property String^ Method {
    String^ get () override;
    void set (String^ value) override;
}
abstract Method : string with get, set
override Method : string with get, set
override function get Method () : String
override function set Method (value : String)

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

FtpWebRequest Class

System.Net Namespace