Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebRequestMethod Enum

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Utility.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
Microsoft.PowerShell.Commands.Utility v7.4.15
Package:
Microsoft.PowerShell.Commands.Utility v7.5.6
Package:
Microsoft.PowerShell.Commands.Utility v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enums for web request method.

public enum class WebRequestMethod
public enum class WebRequestMethod
enum WebRequestMethod
public enum WebRequestMethod
type WebRequestMethod = 
Public Enum WebRequestMethod
Inheritance
WebRequestMethod

Fields

Name Value Description
Default 0

Default method.

Get 1

GET method.

Head 2

HEAD method.

Post 3

POST method.

Put 4

PUT method.

Delete 5

DELETE method.

Trace 6

TRACE method.

Options 7

OPTIONS method.

Merge 8

MERGE method.

Patch 9

PATCH method.

Applies to