HttpMethods.IsOptions(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示 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
。