HttpMethod(String) Konstruktor

Definition

Initierar en ny instans av HttpMethod klassen med en specifik HTTP-metod.

public:
 HttpMethod(System::String ^ method);
public HttpMethod(string method);
new System.Net.Http.HttpMethod : string -> System.Net.Http.HttpMethod
Public Sub New (method As String)

Parametrar

method
String

HTTP-metoden.

Kommentarer

Om en app behöver ett annat värde för HTTP-metoden från en av de statiska egenskaperna HttpMethod initierar konstruktorn en ny instans av HttpMethod med en HTTP-metod som appen anger.

Gäller för