Mono Class Library: System.Net.WebRequest Overview | Members

System.Net.WebRequest.Method Property

Gets or sets the protocol method to use in the current instance. [Edit]

public virtual string Method { set; get; }

Value

A string containing the protocol method to use in the current instance. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class. [Edit]

Remarks

Operation
The default value of this property is required to be a protocol method that does not require protocol-specific properties to be set. For the HTTP protocol, this value is GET.

This property throws NotSupportedException.

Note to Inheritors
This property must be overridden by classes that inherit from System.Net.WebRequest to provide this functionality.

Usage
Use this property to set the protocol-specific method that will be used to make a request.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0