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

適用於