HttpWorkerRequest.GetKnownResponseHeaderIndex(String) 方法

定义

返回指定的 HTTP 响应标头的索引号。Returns the index number of the specified HTTP response header.

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

参数

header
String

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

返回

header 参数中指定的 HTTP 响应标头的索引号。The index number of the HTTP response header specified in the header parameter.

适用于