Share via


WebRequest.Method Property

When overridden in a descendant class, gets or sets the protocol method to use in this request.

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

Syntax

public virtual string Method { get; set; }

Property Value

The protocol method to use in this request.

Remarks

This property gets or sets the verb to this request, such as GET or POST for HTTP.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

WebRequest Class
WebRequest Members
System.Net Namespace