共用方式為


HttpMethod.Equality(HttpMethod, HttpMethod) 運算子

定義

用來比較兩個 HttpMethod 物件的等號比較運算子。

public:
 static bool operator ==(System::Net::Http::HttpMethod ^ left, System::Net::Http::HttpMethod ^ right);
public static bool operator == (System.Net.Http.HttpMethod left, System.Net.Http.HttpMethod right);
public static bool operator == (System.Net.Http.HttpMethod? left, System.Net.Http.HttpMethod? right);
static member ( = ) : System.Net.Http.HttpMethod * System.Net.Http.HttpMethod -> bool
Public Shared Operator == (left As HttpMethod, right As HttpMethod) As Boolean

參數

left
HttpMethod

等號比較運算子左邊的 HttpMethod

right
HttpMethod

等號比較運算子右邊的 HttpMethod

傳回

如果指定的 leftright 參數相等,則為 true,否則為 false

適用於