Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FileWebRequest.Method Property

Gets or sets the protocol method used for the request. This property is reserved for future use.

Namespace:  System.Net
Assembly:  System (in System.dll)

abstract Method : string with get, set 
override Method : string with get, set

Property Value

Type: System.String
The protocol method to use in this request.

ExceptionCondition
ArgumentException

The method is invalid.

- or -

The method is not supported.

- or -

Multiple methods were specified.

The Method property is currently not used by the FileWebRequest class.

The following code example sets the protocol method used for the request. Refer to the complete example in the FileWebRequest class.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft