Share via


HttpMethods.IsGet(String) 方法

定义

返回一个值,该值指示 HTTP 请求方法是否为 GET。

public:
 static bool IsGet(System::String ^ method);
public static bool IsGet (string method);
static member IsGet : string -> bool
Public Shared Function IsGet (method As String) As Boolean

参数

method
String

HTTP 请求方法。

返回

true 如果方法为 GET,则为 ;否则为 false

适用于