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

适用于