Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
The Fields collection for the object.
[Visual Basic] Property Fields as ADODB.Fields read-only [C++] HRESULT get_Fields(Fields** pVal); [IDL] HRESULT [propget] Fields([out,retval] Fields** pVal);
The ADO Fields object is a collection of ADO Field objects that pertain to this object. Each Field object holds a name/value pair defining some header field for the body part. The name is always a string, and the value is a VARIANT. The subtype of the VARIANT depends on the field definition. See the appropriate section of the reference for a list of valid fields to use along with a list of the various VARIANT subtypes for each field.
The fields that resize in this collection depend upon the specific implementation. Consult the appropriate COM class for details about available fields.
Dim iMsg as New CDO.Message Dim iBp as CDO.BodyPart Set iBp = Msg Dim Flds as ADODB.Fields Set Flds = iBp.Fields With Flds .Item("urn:schemas:mailheader:content-type") = "application/msword" .Item("urn:schemas:mailheader:content-disposition") = "attachment" .Update End With