共用方式為


IResponse::get_Status

The IResponse::get_Status method retrieves the current value of the Response.Status property of the Response object.

HRESULT get_Status(
      BSTR* pbstrStatusRet
);

Parameters

  • pbstrStatusRet
    [retval] [out] Points to a BSTR that receives the Status value.

Remarks

You use this property to obtain the status line returned by the server. Status values are defined in the HTTP 1.1 RFC 2068.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also