HttpWorkerRequest.GetKnownRequestHeaderIndex(String) 方法

定义

返回指定的 HTTP 请求标头的索引号。Returns the index number of the specified HTTP request header.

public:
 static int GetKnownRequestHeaderIndex(System::String ^ header);
public static int GetKnownRequestHeaderIndex (string header);
static member GetKnownRequestHeaderIndex : string -> int
Public Shared Function GetKnownRequestHeaderIndex (header As String) As Integer

参数

header
String

标头的名称。The name of the header.

返回

header 参数中指定的 HTTP 请求标头的索引号。The index number of the HTTP request header specified in the header parameter.

适用于