Items Interface

Definition

Contains a collection of Outlook item objects

public interface class Items : Microsoft::Office::Interop::Outlook::_Items, Microsoft::Office::Interop::Outlook::ItemsEvents_Event
[System.Runtime.InteropServices.Guid("00063041-0000-0000-C000-000000000046")]
public interface Items : Microsoft.Office.Interop.Outlook._Items, Microsoft.Office.Interop.Outlook.ItemsEvents_Event
Public Interface Items
Implements _Items, ItemsEvents_Event
Derived
Attributes
Implements

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 _Items. For information about the event members of the COM object, see ItemsEvents_Event.

Use the Items property to return the Items object of a Folder object.

Use Items(index), where index is the name or index number, to return a single Outlook item.

Note: The index for the Items collection starts at 1, and the items in the Items collection object are not guaranteed to be in any particular order.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _Items)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _Items)
Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

(Inherited from _Items)
IncludeRecurrences

Returns a Boolean (bool in C#) that indicates True if the Items collection should include recurrence patterns. Read/write.

(Inherited from _Items)
Item[Object]

Returns an Outlook item from a collection.

(Inherited from _Items)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _Items)
RawTable

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Items)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _Items)

Methods

Add(Object)

Creates a new Outlook item in the Items collection for the folder.

(Inherited from _Items)
Find(String)

Locates and returns an Outlook item object that satisfies the given Filter.

(Inherited from _Items)
FindNext()

After the Find(String) method runs, this method finds and returns the next Outlook item in the specified collection.

(Inherited from _Items)
GetFirst()

Returns the first object in the collection.

(Inherited from _Items)
GetLast()

Returns the last object in the collection.

(Inherited from _Items)
GetNext()

Returns the next object in the collection.

(Inherited from _Items)
GetPrevious()

Returns the previous object in the collection.

(Inherited from _Items)
Remove(Int32)

Removes an object from the collection.

(Inherited from _Items)
ResetColumns()

Clears the properties that have been cached with the SetColumns(String) method.

(Inherited from _Items)
Restrict(String)

Applies a filter to the Items collection, returning a new collection containing all of the items from the original that match the filter.

(Inherited from _Items)
SetColumns(String)

Caches certain properties for extremely fast access to those particular properties of an item within the collection.

(Inherited from _Items)
Sort(String, Object)

Sorts the collection of items by the specified property. The index for the collection is reset to 1 upon completion of this method.

(Inherited from _Items)

Events

ItemAdd

Occurs when one or more items are added to the specified collection. This event does not run when a large number of items are added to the folder at once.

(Inherited from ItemsEvents_Event)
ItemChange

Occurs when an item in the specified collection is changed.

(Inherited from ItemsEvents_Event)
ItemRemove

Occurs when an item is deleted from the specified collection. This event does not run when the last item in a Personal Folders file (.pst) is deleted, or if 16 or more items are deleted at once from a PST file, Microsoft Exchange mailbox, or an Exchange public folder.

(Inherited from ItemsEvents_Event)

Applies to