Method Property

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)

override Method : string with get, set

Property Value

Type: System.String

The protocol method to use in this request.

Exception Condition
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
Available since 1.1
Return to top
Show:
© 2016 Microsoft