Views Views Views Interface


Contains a collection of all View objects in the current folder.

public interface class Views : Microsoft::Office::Interop::Outlook::_Views, Microsoft::Office::Interop::Outlook::_ViewsEvents_Event
public interface Views : Microsoft.Office.Interop.Outlook._Views, Microsoft.Office.Interop.Outlook._ViewsEvents_Event
Public Interface Views
Implements _Views, _ViewsEvents_Event


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

Use the Views property of the Folder object to return the Views collection. Use Views(index),where index is the object's name or position within the collection, to return a single View object.

Use the Add(String, OlViewType, OlViewSaveOption) method of the views collection to add a new view to the collection.

Use the Remove(Object) method to remove a view from the collection.


Add(String, OlViewType, OlViewSaveOption) Add(String, OlViewType, OlViewSaveOption) Add(String, OlViewType, OlViewSaveOption)

Creates a new view in the Views collection.

(Inherited from _Views)

GetEnumerator() GetEnumerator() GetEnumerator()

This member is inherited from the base type of the parent interface.

(Inherited from _Views)

Remove(Object) Remove(Object) Remove(Object)

Removes an object from the collection.

(Inherited from _Views)


Application Application Application

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

(Inherited from _Views)

Class Class Class

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

(Inherited from _Views)

Count Count Count

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

(Inherited from _Views)

Item[Object] Item[Object] Item[Object]

Returns an View object from the collection.

(Inherited from _Views)

Parent Parent Parent

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

(Inherited from _Views)

Session Session Session

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

(Inherited from _Views)


ViewAdd ViewAdd ViewAdd

Occurs when a view is added to the collection. Microsoft Outlook creates the new view and passes it to this event.

(Inherited from _ViewsEvents_Event)

ViewRemove ViewRemove ViewRemove

Occurs when a view has been removed from the specified collection.

(Inherited from _ViewsEvents_Event)

Applies to