Share via


HttpProtocol.IsHttp2(String) メソッド

定義

HTTP 要求プロトコルが HTTP/2 であるかどうかを示す値を返します。

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

パラメーター

protocol
String

HTTP 要求プロトコル。

戻り値

true プロトコルが HTTP/2 の場合は 。それ以外の場合は false

適用対象