Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Reference
Interfaces
IMessage Interface
 IMessage.Fields Property
Exchange Server 2003
IMessage.Fields Property

Topic Last Modified: 2004-06-08

The Fields property specifies the Fields collection for the object.

Property Fields as ADODB.Fields
read-only
HRESULT get_Fields(Fields** pVal);

The Fields property obtains a collection of Microsoft® ActiveX® Data Objects (ADO) Field objects, each of which contains a field relating to the message.

This example code determines how many fields a message has:

' Reference to Microsoft ActiveX Data Objects 2.5 Library
' Reference to Microsoft CDO for Windows 2000 Library
Dim iMsg as New CDO.Message
Dim collFields as Fields
Set collFields = iMsg.Fields

If collFields.Count = 0 Then
  MsgBox "Fields collection is empty"
Else
  MsgBox "Message has " & collFields.Count & " fields"
End If 
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker