次の方法で共有


IResponse::put_ContentType

The IResponse::put_ContentType method sets the value of the Response.ContentType property of the Response object.

HRESULT put_ContentType(
      BSTR bstrContentType
);

Parameters

  • bstrContentType
    [in] A BSTR that contains the new ContentType value.

Remarks

You can use the ContentType value to set the content type to use when displaying the current Response object.

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