Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpMethod class

Applies to Windows and Windows Phone

Retrieves standard HTTP methods such as GET and POST and creates new HTTP methods.

Syntax

Public NotInheritable Class HttpMethod
    Implements IStringable

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The HttpMethod class has these types of members:

Constructors

The HttpMethod class has these constructors.

ConstructorDescription
HttpMethod Initializes a new instance of the HttpMethod class with a specific HTTP method.

 

Methods

The HttpMethod class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
ToString Returns a string that represents the current HttpMethod object.

 

Properties

The HttpMethod class has these properties.

PropertyAccess typeDescription

Delete

Read-onlyGets the HTTP DELETE method.

Get

Read-onlyGets the HTTP GET method.

Head

Read-onlyGets the HTTP HEAD method.

Method

Read-onlyGets the HTTP method.

Options

Read-onlyGets the HTTP OPTIONS method.

Patch

Read-onlyGets the HTTP PATCH method,

Post

Read-onlyGets the HTTP POST method.

Put

Read-onlyGets the HTTP PUT method.

 

Remarks

The most common use of HttpMethod is to get a standard HTTP method (verb) from a property on this class. However, if an app needs a different value for the HTTP method, the HttpMethod constructor initializes a new instance of the HttpMethod with an HTTP method that the app developer specifies.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

Object
IStringable

 

 

Show:
© 2014 Microsoft. All rights reserved.