In The Hand - .NET Components for Mobility
Method Property
NamespacesInTheHand.NetFtpWebRequestMethod
Gets or sets the command to send to the FTP server.
Declaration Syntax
C#Visual Basic
public override string Method { get; set; }
Public Overrides Property Method As String
Value
A String value that contains the FTP command to send to the server. The default value is DownloadFile.
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.
Exceptions
ExceptionCondition
InvalidOperationExceptionA new value was specified for this property for a request that is already in progress.
ArgumentExceptionThe method is invalid.

- or -

The method is not supported.

- or -

Multiple methods were specified.


Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 2.1.0.0