HttpMethod(String) 建構函式

定義

以特定的 HTTP 方法初始化該 HttpMethod 類別的新實例。

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)

參數

method
String

HTTP 方法。

備註

如果應用程式需要與靜態屬性不同的 HTTP 方法值, HttpMethod 建構子會用應用程式指定的 HTTP 方法初始化一個新的實例 HttpMethod

適用於