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

適用於