Partager via


Item CoClass

Topic Last Modified: 2006-06-13

Provides a generic implementation of any resource in the Exchange store.

CLSID

CD000112-8B95-11D1-82DB-00C04FB1625D

ProgID

CDO.Item

Type Library

Microsoft CDO for Exchange 2000 Library

Inproc Server

CDOEX.DLL

Threading Model

Both

Implemented Interfaces

IDataSource Interface

IItem Interface

OLE DB Row Access

Supported Bindings

The following table lists IDataSource interface bindings.

Method Target Argument Content Class

Open

Exchange store item URL

urn:content-classes:calendarmessage

OpenObject

IRow _Record IStream _Stream IBodyPart

urn:content-classes:calendarmessage

SaveTo

Exchange store item URL

N/A

SaveToContainer

Exchange store folder URL

N/A

SaveToObject

IRow _Record IStream _Stream IBodyPart

N/A

Remarks

You can use this class to open any folder or item as a generic Collaboration Data Objects (CDO) Configuration object, regardless of its content class.

Similar to a Microsoft® ActiveX® Data Objects (ADO) Record object, an Item object provides access to streams and schema fields. It has convenient access to CDO Configuration objects and fields collections. Core item schema properties are also properties on the IItem interface.

Example

This code example opens an Item object from the URL of a valid object.


' Assume oRec is an ADO Record object.

Dim oI As New CDO.item
oI.DataSource.Open oRec.Source
Debug.Print oI.DisplayName