Поделиться через


IResponse C++ Interface

The IResponse interface exposes the methods of the Response Object object.

Methods in Vtable Order

The IResponse interface inherits the methods of the standard COM interface IUnknown.

The IResponse interface defines the following methods.

Method

Description

AddHeader

Adds a header to the HTML output.

AppendToLog

Adds a string to the end of the Web server log for the current request.

BinaryWrite

Writes data to the HTTP output without any character conversion.

Clear

Erases any buffered HTML output.

End

Causes the server to stop processing a script and return the current response.

Flush

Sends buffered HTML output immediately.

get_Buffer

Retrieves the value of the Response.Buffer property.

get_CacheControl

Retrieves the value for the CacheControl property.

get_CharSet

Retrieves the name of a character set to append to the content-type header.

get_ContentType

Retrieves the value of the Response.ContentType property.

get_Cookies

Retrieves the write-only Response.Cookies Collection collection.

get_Expires

Retrieves the value of the Response.Expires property.

get_ExpiresAbsolute

Retrieves the value of the Response.ExpiresAbsolute property.

get_Status

Retrieves the value of the Response.Status property.

IsClientConnected

Determines if the client has reset the connection to the server.

PICS

Adds a value to the PICS label field of the Response header.

put_Buffer

Sets the value of the Response.Buffer property.

put_CacheControl

Set the value for the CacheControl property.

put_CharSet

Adds a character set to the ContentType header.

put_ContentType

Sets the value of the Response.ContentType property.

put_Expires

Sets the value of the Response.Expires property.

put_ExpiresAbsolute

Sets the value of the Response.ExpiresAbsolute property.

put_Status

Sets the value of the Response.Status property.

Redirect

Causes the browser to attempt to connect to a different URL.

Write

Writes a variant to the HTTP output.

Note

This interface also supports the IUnknown and IDispatch interface methods. For more information, see \inetsrv\asp\cmpnts\asptlb.h, the header file installed with ASP.

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