Row Interface

Represents a row of data in the Table object.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<GuidAttribute("000630D3-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(RowClass))> _
Public Interface Row _
    Inherits _Row
'Usage
Dim instance As Row
[GuidAttribute("000630D3-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(RowClass))]
public interface Row : _Row

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Row.

A Table is composed of rows and columns. It represents a read-only dynamic rowset of data in a Folder or Search object. You can regard each row of a Table as an item in the folder, and each column as a property of the item. By default, the Table contains only a subset of properties for items in the folder. This makes the Table an in-memory lightweight rowset that supports fast enumeration and filtering of items in the folder.

If the Table object is obtained from MAPIFolder.GetTable, you can further specify a filter (in _Table.Restrict) to obtain a more restricted set of rows in the Table.

You can use the Table methods: FindRow, FindNextRow, GetNextRow, and MoveToStart to obtain a specific row in a Table.

Use _Row.GetValues to obtain an array of values that correspond to column values at that row in the Table.

Use the helper functions _Row.BinaryToString, _Row.LocalTimeToUTC, and _Row.UTCToLocalTime to facilitate type conversion of column values at a specific row. For more information on property value representation in a Table, see Factors Affecting Property Value Representation in the Table and View Classes.

Although additions and deletions of the underlying folder are reflected by the rows in the Table, the Table does not support any events for adding, changing, and removing of rows. If you require a writeable object from the Table row, obtain the Entry ID for that row from the default EntryID column in the Table and then use the GetItemFromID method of the NameSpace object to obtain a full item, such as a MailItem or a ContactItem, that supports read-write operations. For more information on default columns in a Table, see Default Properties Displayed in a Table.

See Also

Reference

Row Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Enumerate Items in the Inbox Based on the Last Modification Time

How to: Filter and Display Inbox Items Modified in the Last Month

How to: Display the Task Request Items Sent to a Recipient