HttpMethods.IsOptions(String) 方法

定义

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

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

参数

method
String

HTTP 请求方法。

返回

true 如果方法是 OPTIONS,则为 ;否则为 false

适用于