ContainerRenderer Object

[Previous] [Next]

The ObjectRenderer object is very similar to the ContainerRenderer object in both its methods and properties. The only difference between them is that the ObjectRenderer object is used to render information on a single object and not a container. The data sources accepted by the ObjectRenderer object are AddressEntry, AppointmentItem, Attachment, Folder, MeetingItem, and Message objects. The following section highlights the methods and properties for this object.

ObjectRenderer Object Methods

The methods on the ObjectRender object are RenderDate, RenderLink, RenderProperty, and RenderTime. Some are exactly the same as the methods used on the ContainerRenderer object. For more information on the ObjectRenderer methods, refer to the ContainerRenderer object. The one method that differs is RenderLink.

RenderLink Method

The RenderLink method renders an HTML link to the specified object in the DataSource property. The way to render the link is specified in the LinkPattern property. The RenderLink method takes one optional parameter, which is the Response object to render the information to. This is usually the standard ASP Response object.

ObjectRenderer Object Properties

The ObjectRenderer object properties are a subset of the ContainerRenderer properties. The most important properties for the ObjectRenderer are the DataSource, Formats, and LinkPattern properties. For more information on the Formats and LinkPattern properties, see the descriptions in the section on the ContainerRenderer object.

DataSource Property

The DataSource property returns or sets the CDO object from which you want to render specific properties. The CDO object types this property can accept are the AddressEntry, AppointmentItem, Attachment, Folder, MeetingItem, and Message objects.



Programming Microsoft Outlook and Microsoft Exchange
Programming Microsoft Outlook and Microsoft Exchange, Second Edition (DV-MPS Programming)
ISBN: 0735610193
EAN: 2147483647
Year: 2000
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net