FtpWebRequest.Method Property
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
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
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.