Share via


HttpMethod Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the HTTP method specified by the client.

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

Syntax

'Declaration
Public ReadOnly Property HttpMethod As String
public string HttpMethod { get; }
public:
property String^ HttpMethod {
    String^ get ();
}
member HttpMethod : string with get
function get HttpMethod () : String

Property Value

Type: System. . :: . .String
A String that contains the method used in the request.

Remarks

The HTTP method is typically GET or POST, depending on the action desired by the client.

.NET Framework Security

See Also

Reference

HttpListenerRequest Class

System.Net Namespace