Fields Property (IAddressee)
Topic Last Modified: 2006-06-13
Reserved for future use. This property is read-only.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
Property Fields As ADODB.Fields
HRESULT get_Fields(Fields** pVal);
Parameters
- pVal
Returned reference to the objects Fields collection.
Remarks
The Fields property obtains a collection of Microsoft® ActiveX® Data Objects (ADO) Field objects, each of which contains a field relating to the addressee.
Note
When you use the ADO Fields.Update method, field values are updated only in memory. You must call Save Method to save the changes to the Exchange store. To get the IDataSource interface, use the GetInterface method on the Collaboration Data Objects (CDO) object.
Example
The following example determines how many fields a message has:
Dim iAddr as New CDO.Addressee
Dim collFields as Fields
Set collFields = iAddr.Fields
If collFields.Count = 0 Then
MsgBox "Fields collection is empty"
Else
MsgBox "Message has " & collFields.Count & " fields"
End If