Gets or sets the method for the request.

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

Syntax

Visual Basic
Public Overrides Property Method As String
	Get
	Set
C#
public override string Method { get; set; }

Field Value

The method for the request.

Remarks

The Method property can be set to either RETR or STOR command. PUT and GET are also supported for compatibility with HttpWebRequest.

Changing the Method property after the request has been started by calling GetRequestStream()()()(), BeginGetRequestStream(AsyncCallback, Object), GetResponse()()()(), or BeginGetResponse(AsyncCallback, Object) method will throw an InvalidOperationException.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also