Partager via


Table Interface

Represents a set of item data from a Folder or Search object, with items as rows of the table and properties as columns of the table.

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

Syntax

'Declaration
<GuidAttribute("000630D2-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(TableClass))> _
Public Interface Table _
    Inherits _Table
'Usage
Dim instance As Table
[GuidAttribute("000630D2-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(TableClass))]
public interface Table : _Table

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 _Table.

The Table represents a read-only dynamic rowset of data in a Folder or Search object. You can use MAPIFolder.GetTable or Search.GetTable to obtain a Table object that represents a set of items in a folder or search folder. If the Table object is obtained from Folder.GetTable, you can further specify a filter (in _Table.Restrict) to obtain a subset of the items in the folder. If you do not specify any filter, you will obtain all the items in the folder.

By default, each item in the returned Table contains only a default subset of its properties. You can regard each row of a Table as an item in the folder, each column as a property of the item, and the Table as an in-memory lightweight rowset that allows fast enumeration and filtering of items in the folder. 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 Object.

For more information on the Table object, see Enumerating, Searching, and Filtering Items in a Folder.

See Also

Reference

Table Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get and Display Items in a Conversation

How to: Synchronize Outlook with a SharePoint Folder

How to: Filter and Efficiently Enumerate Items in a Folder

How to: Use Arrays to Efficiently Enumerate Items in a Folder

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: Filter and Display Multivalued Properties When Enumerating Items in a Folder

How to: Filter and Display Computed Properties When Enumerating Items in a Folder

How to: Enumerate Hidden Items in a Folder

How to: Search for a Phrase in the Body of Items in a Folder

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

How to: Enumerate Items in a Table View

How to: Filter Recurring Appointments and Search for a String in the Subject