Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FtpWebRequest.Method Property

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

Method

Gets or sets the method for the request.

Declaration
public override string Method { get; set; }
Property Value
Type Description
String

The method for the request.

Overrides
WebRequest.Method
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.

In This Article
  • Method
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies