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

返回

true 如果指定的 left 参数和 right 参数相等,则为 ;否则为 false

适用于