共用方式為


IReadCookie C++ Interface

You can use the IReadCookie interface to access the object returned from the read-only Request.Cookies Collection collection. Calling IRequestDictionary::get_Item on the read-only Cookies collection will always return an object that implements the IReadCookie interface.

Methods in Vtable Order

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

The IReadCookie interface defines the following methods.

Method

Description

get_HasKeys

Retrieves a Boolean indicating whether the cookie has keys.

get_Item

Retrieves the specified item from a cookie dictionary.

get__NewEnum

Retrieves an enumerator for the Cookies collection.

Note

IReadCookie and IWriteCookie C++ Interface are interfaces for the same object. If you have an IReadCookie pointer, you can use the IUnknown::QueryInterface method on an IWriteCookie pointer.

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

See Also